/* Login page stylesheet extracted from templates/login.html */
:root {
  --main-bg: #fbbb00;
  --card-bg: #ffffff;
  --primary: #2f7ec4;
  --border: #d9d9d9;
  --danger: #b3261e;
  --text: #171717;
  --radius: 14px;
  --shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 28px);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(125deg, #fbbb00 0%, #fbbb00 35%, #f6f8fd 72%, #ffffff 100%);
}

.login-card {
  width: min(480px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(16px, 3.3vw, 26px);
}

.brand {
  text-align: center;
  margin-bottom: 14px;
}

.brand-welcome {
  margin: 0 0 6px;
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  font-weight: 700;
  color: #535353;
}

.brand-title {
  margin: 0 0 8px;
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  font-weight: 900;
  color: #4f3d11;
  letter-spacing: 0.01em;
}

.brand-logo {
  width: clamp(90px, 16vw, 132px);
  height: auto;
  object-fit: contain;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

p {
  margin: 0 0 16px;
  color: #333;
  font-size: 0.97rem;
}

label {
  display: block;
  margin: 9px 0 5px;
  font-weight: 700;
  font-size: 0.93rem;
}

input {
  width: 100%;
  border: 3px solid #FBBB00;
  border-radius: 9px;
  padding: 11px 12px;
  font-size: 1rem;
  background: #fff;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 126, 196, 0.18);
}

.error {
  margin: 0 0 12px;
  background: #ffe9e7;
  border: 1px solid #f1b5af;
  color: var(--danger);
  border-radius: 8px;
  padding: 9px 10px;
  font-weight: 600;
  font-size: 0.92rem;
}

.btn {
  margin-top: 14px;
  width: 100%;
  border: none;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 12px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(47, 126, 196, 0.26);
}

/* Micron-like fade micro-interaction: 1 -> 0.65 -> 1 (no blinking) */
@keyframes micron-fade {
  0% { opacity: 1; }
  50% { opacity: 0.65; }
  100% { opacity: 1; }
}

.micron-anim-fade {
  /* Pure opacity micro-interaction */
  animation: micron-fade 5520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity;
}

/* Micron-like pop micro-interaction: short scale 'pop' */
@keyframes micron-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.08); }
  50% { transform: scale(0.98); }
 100% { transform: scale(1); }
}

.micron-anim-pop {
  animation: micron-pop 280ms cubic-bezier(0.2, 1, 0.22, 1);
  will-change: transform;
}

/* Pulse animation (simple attention pulse) */
@-webkit-keyframes pulse {
  from {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  50% {
    -webkit-transform: scale3d(1.05, 1.05, 1.05);
    transform: scale3d(1.05, 1.05, 1.05);
  }

  to {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

@keyframes pulse {
  from {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  50% {
    -webkit-transform: scale3d(1.05, 1.05, 1.05);
    transform: scale3d(1.05, 1.05, 1.05);
  }

  to {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

.pulse {
  -webkit-animation-name: pulse;
  animation-name: pulse;
}

.animated {
  -webkit-animation-duration: 3s;
  animation-duration: 3s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}
