/* static/css/home.css */

/* =========================
   1. PAGE LAYOUT
   ========================= */

.login-page {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 100%;
  max-width: 460px;
  padding: 38px 34px 30px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  box-shadow:
    0 22px 60px rgba(15, 23, 42, 0.12),
    0 8px 20px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
  backdrop-filter: blur(14px);
}

/* =========================
   2. LOGO & TEXT
   ========================= */

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo {
  width: 168px;
  max-width: 76%;
  height: auto;
  margin: 0 auto 18px;
  display: block;
}

.login-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.login-subtitle {
  max-width: 320px;
  margin: 8px auto 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #64748b;
  font-weight: 600;
}

/* =========================
   3. MICROSOFT BUTTON
   ========================= */

.microsoft-btn {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  border-radius: 16px;
  border: 1px solid #dbe3ef;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.microsoft-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.microsoft-btn__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  color: #00a4ef;
  font-size: 18px;
  flex-shrink: 0;
}

.microsoft-btn__content {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.microsoft-btn__title {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 850;
  color: #0f172a;
}

.microsoft-btn__subtitle {
  font-size: 11.5px;
  line-height: 1.25;
  font-weight: 700;
  color: #64748b;
}

.microsoft-btn__arrow {
  color: #94a3b8;
  font-size: 12px;
  flex-shrink: 0;
}

/* =========================
   4. SEPARATOR
   ========================= */

.login-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}

.login-separator div {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #dbe3ef, transparent);
}

.login-separator span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

/* =========================
   5. ERROR
   ========================= */

.login-error {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding: 12px 13px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
}

.login-error i {
  flex-shrink: 0;
}

/* =========================
   6. INPUT GROUP
   ========================= */

.input-group {
  margin-bottom: 18px;
  position: relative;
}

.input-group label {
  display: block;
  margin: 0 0 7px 2px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
}

.toggle-password {
  position: absolute;
  right: 11px;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  z-index: 3;
  color: #94a3b8;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.toggle-password:hover {
  color: #2563eb;
  background: #eef4ff;
}

/* =========================
   7. FORM INPUTS
   ========================= */

.form-control,
.input-wrapper input {
  width: 100%;
  height: 46px;
  padding: 0 46px 0 42px;
  border-radius: 13px;
  border: 1px solid #dbe3ef;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  box-sizing: border-box;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
  background-color: #ffffff;
  outline: none;
}

.input-wrapper input::placeholder {
  color: #94a3b8;
}

.form-control:focus,
.input-wrapper input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* =========================
   8. PRIMARY BUTTON
   ========================= */

.login-btn {
  width: 100%;
  height: 48px;
  margin-top: 6px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-weight: 850;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.28);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.34);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn__icon {
  font-size: 12px;
}

/* =========================
   9. FOOTER
   ========================= */

.login-footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.login-footer__chip {
  min-height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.login-footer__chip i {
  color: #2563eb;
}

.login-footer__link {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  transition: color 0.18s ease;
}

.login-footer__link:hover {
  color: #2563eb;
}

/* =========================
   10. RESPONSIVE
   ========================= */

@media (max-width: 520px) {
  .login-card {
    max-width: 100%;
    padding: 30px 20px 24px;
    border-radius: 20px;
  }

  .login-logo {
    width: 150px;
    margin-bottom: 16px;
  }

  .login-title {
    font-size: 22px;
  }

  .microsoft-btn {
    min-height: 56px;
  }
}