/* Auth pages styling aligned with the custom_new theme. */
:root {
  --auth-bg: #eef2f6;
  --auth-surface: #ffffff;
  --auth-border: #47ad4d;
  --auth-text: #0f172a;
  --auth-muted: #64748b;
  --auth-accent: #055482;
  --auth-accent-2: #0b6fa8;
  --auth-highlight: #47ad4d;
  --auth-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  --auth-radius: 18px;
}

body.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--auth-accent);
  color: var(--auth-text);
}

.auth-shell {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-page .login-box,
.auth-page .register-box {
  width: 100%;
  max-width: 440px;
  margin: 0;
}

.auth-card {
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  box-shadow: var(--auth-shadow);
  overflow: hidden;
  position: relative;
}

.auth-card::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--auth-highlight), var(--auth-highlight));
}

.auth-card-header {
  padding: 26px 28px 18px;
  text-align: center;
  background: #f8fafc;
  border-bottom: 1px solid var(--auth-border);
}

.auth-logo {
  display: block;
  max-width: 180px;
  margin: 0 auto 10px;
}

.auth-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--auth-text);
}

.auth-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--auth-muted);
  margin-top: 4px;
}

.auth-card-body {
  padding: 24px 28px 28px;
  background: var(--auth-surface);
}

.auth-page .login-box-body,
.auth-page .register-box-body {
  border-radius: 0;
}

.auth-page .login-box-msg {
  font-weight: 600;
  color: var(--auth-text);
  margin-bottom: 18px;
}

.auth-card-body .form-group {
  margin-bottom: 16px;
}

.auth-page .form-control-feedback {
  color: #94a3b8;
}

.auth-page .btn-primary {
  background-color: var(--auth-accent);
  border-color: var(--auth-accent);
}

.auth-page .btn-primary:hover,
.auth-page .btn-primary:focus,
.auth-page .btn-primary:active,
.auth-page .btn-primary.active {
  background-color: var(--auth-accent-2);
  border-color: var(--auth-accent-2);
}

.auth-footer {
  margin-top: 18px;
  text-align: center;
}

.auth-link {
  color: var(--auth-accent);
  font-weight: 600;
}

.auth-link:hover,
.auth-link:focus {
  color: var(--auth-accent-2);
  text-decoration: none;
}

.auth-page .alert {
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

@media (max-width: 575px) {
  body.auth-page {
    padding: 24px 12px;
  }

  .auth-card-header {
    padding: 22px 20px 16px;
  }

  .auth-card-body {
    padding: 20px 20px 24px;
  }
}
