/* Auth Pages Styling */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: white;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #172033;
}

.auth-header p {
  font-size: 14px;
  color: #667085;
  margin: 0;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #172033;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select {
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: white;
}

.form-group input::placeholder {
  color: #a8b2c1;
}

.form-submit {
  padding: 12px 16px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  margin-top: 8px;
}

.form-submit:hover {
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

.form-submit:active {
  transform: translateY(0);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: #d1d5db;
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.oauth-buttons {
  display: grid;
  gap: 12px;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  color: #172033;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.oauth-btn:hover {
  border-color: #2563eb;
  background: #f0f9ff;
}

.oauth-btn-icon {
  font-size: 18px;
}

.auth-footer {
  text-align: center;
  font-size: 14px;
  color: #667085;
}

.auth-footer a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.error-message {
  padding: 12px 14px;
  background: #fef3f2;
  border: 1px solid #fcddd5;
  border-radius: 8px;
  color: #b42318;
  font-size: 13px;
  margin-bottom: 16px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #667085;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #2563eb;
}

@media (max-width: 640px) {
  .auth-card {
    padding: 32px 24px;
  }

  .auth-header h1 {
    font-size: 24px;
  }
}

/* Login redesign */
.auth-login-page {
  display: block;
  padding: 0;
  background: #f2f5f9;
}

.login-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(440px, .92fr);
}

.login-brand-panel {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 44px clamp(34px, 5vw, 72px);
  color: #fff;
  background: #091426;
}

.login-brand-image,
.login-brand-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.login-brand-image {
  object-fit: cover;
  object-position: 58% center;
}

.login-brand-overlay {
  background: rgba(5, 14, 28, .72);
}

.login-brand,
.login-brand-content,
.login-back-link {
  position: relative;
  z-index: 1;
}

.login-brand {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.login-brand > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: #1769e0;
  font-size: 18px;
}

.login-brand-content {
  max-width: 650px;
  margin-block: 70px;
}

.login-eyebrow {
  margin: 0 0 14px;
  color: #08bad7;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-brand-content h1 {
  margin: 0;
  font-size: clamp(38px, 4.7vw, 68px);
  line-height: 1.04;
  font-weight: 800;
}

.login-brand-content > p {
  max-width: 580px;
  margin: 22px 0 0;
  color: #ced9e8;
  font-size: 17px;
  line-height: 1.7;
}

.login-brand-content ul {
  display: grid;
  gap: 13px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: #eaf1f8;
  font-size: 14px;
}

.login-brand-content li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-brand-content li i { color: #37d6bd; }

.login-back-link {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c5d3e3;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.login-form-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 54px clamp(28px, 5vw, 76px);
  background: #f7f9fc;
}

.login-auth-card {
  max-width: 460px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.login-auth-card .auth-header {
  margin-bottom: 30px;
  text-align: left;
}

.login-auth-card .auth-header h2 {
  margin: 0 0 10px;
  color: #101828;
  font-size: 34px;
  line-height: 1.15;
}

.login-auth-card .auth-header p:last-child {
  color: #667085;
  font-size: 14px;
}

.login-auth-card .auth-form {
  gap: 18px;
  margin-bottom: 0;
}

.login-auth-card .form-group label {
  color: #344054;
  font-size: 12px;
  text-transform: none;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap > i {
  position: absolute;
  left: 15px;
  z-index: 1;
  color: #667085;
}

.login-auth-card .auth-input-wrap input {
  width: 100%;
  min-height: 48px;
  padding: 0 46px 0 44px;
  border: 1px solid #cfd8e5;
  border-radius: 8px;
  background: #fff;
}

.auth-password-toggle {
  position: absolute;
  right: 7px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #667085;
}

.auth-password-toggle:hover { background: #eef3f8; color: #1769e0; }

.login-form-options {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-auth-card .checkbox-group {
  cursor: pointer;
  text-transform: none;
}

.auth-submit {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  background: #1769e0;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.auth-submit:hover {
  background: #1058c1;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(23,105,224,.22);
}

.login-auth-card .auth-divider {
  margin: 24px 0;
  color: #98a2b3;
}

.login-auth-card .auth-divider span { white-space: nowrap; }

.login-auth-card .oauth-btn {
  min-height: 48px;
  border-color: #cfd8e5;
  background: #fff;
}

.login-auth-card .auth-footer { margin: 26px 0 0; }

.login-mobile-brand { display: none; }

.login-auth-card .error-message {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 22px;
}

.forgot-password-link {
  color: #1769e0;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.forgot-password-link:hover { text-decoration: underline; }

.auth-success-message {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #166534;
  font-size: 13px;
  font-weight: 650;
}

.password-reset-page {
  background: #f4f7fb;
}

.password-reset-shell {
  width: min(100%, 520px);
  display: grid;
  gap: 22px;
}

.password-reset-brand {
  justify-self: center;
  color: #12335f;
  font-size: 20px;
  font-weight: 850;
  text-decoration: none;
}

.password-reset-brand i { margin-right: 7px; color: #1769e0; }

.password-reset-card {
  max-width: 520px;
  border: 1px solid #e1e8f0;
  box-shadow: 0 24px 70px rgba(15, 37, 87, .13);
}

.password-reset-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 16px;
  background: #eaf2ff;
  color: #1769e0;
  font-size: 25px;
}

.password-reset-card .auth-header { margin-bottom: 24px; }
.password-reset-card .auth-header strong { color: #344054; }
.password-reset-card .auth-form { margin-bottom: 18px; }
.password-reset-card .auth-input-wrap input { width: 100%; padding-left: 44px; }

.reset-code-input {
  min-height: 58px;
  text-align: center;
  font-size: 27px !important;
  font-weight: 800;
  letter-spacing: .32em;
}

.password-reset-help {
  margin: 0 0 20px;
  color: #667085;
  text-align: center;
  font-size: 12px;
}

.password-reset-help a,
.password-reset-back {
  color: #1769e0;
  font-weight: 700;
  text-decoration: none;
}

.password-reset-back {
  display: flex;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
}

@media (max-width: 920px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-form-panel {
    min-height: auto;
    order: 1;
    padding: 38px 24px 48px;
  }
  .login-brand-panel {
    min-height: 420px;
    order: 2;
    padding: 42px 28px;
  }
  .login-brand-panel > .login-brand { display: none; }
  .login-brand-content { margin: 0; }
  .login-brand-content h1 { max-width: 680px; font-size: clamp(34px, 7vw, 54px); }
  .login-back-link { margin-top: 34px; }
  .login-mobile-brand {
    width: 100%;
    max-width: 460px;
    display: block;
    margin-bottom: 44px;
  }
  .login-mobile-brand a {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #101828;
    font-weight: 800;
    text-decoration: none;
  }
  .login-mobile-brand i { color: #1769e0; font-size: 20px; }
}

@media (max-width: 560px) {
  .login-form-panel { padding: 26px 20px 40px; }
  .login-mobile-brand { margin-bottom: 34px; }
  .login-auth-card .auth-header h2 { font-size: 29px; }
  .login-brand-panel { min-height: 390px; }
  .login-brand-content > p { font-size: 15px; }
  .login-brand-content ul { gap: 10px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-submit { transition: none; }
}
