/* Zero - Auth pages: centered card layout */

:root,
[data-theme="light"] {
  --zero-primary: #0088cc;
  --zero-primary-hover: #006ba3;
  --zero-primary-light: rgba(0, 136, 204, 0.12);
  --auth-bg: linear-gradient(135deg, #f0f7fc 0%, #e8f4fc 50%, #f5f9fc 100%);
  --auth-card-bg: #ffffff;
  --auth-text: #1a1a2e;
  --auth-text-muted: #64748b;
  --auth-border: #e2e8f0;
  --auth-shadow: 0 8px 40px rgba(0, 68, 102, 0.08);
  --auth-input-bg: #ffffff;
  --auth-input-color: #1a1a2e;
  --auth-placeholder: #a0aec0;
}

[data-theme="dark"] {
  --auth-bg: linear-gradient(135deg, #0d1117 0%, #111827 50%, #0f1923 100%);
  --auth-card-bg: #1a1d27;
  --auth-text: #e8eaf0;
  --auth-text-muted: #8b95a9;
  --auth-border: #2a2f3d;
  --auth-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  --auth-input-bg: #0f1117;
  --auth-input-color: #e8eaf0;
  --auth-placeholder: #4a5568;
}

body.auth-layout {
  margin: 0;
  min-height: 100vh;
  overflow-y: auto;
  background: var(--auth-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.auth-layout-inner {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem 1.5rem;
  box-sizing: border-box;
  position: relative;
}

.auth-back-link {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  color: var(--zero-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.auth-back-link:hover {
  color: var(--zero-primary-hover);
}

.auth-theme-btn {
  position: absolute;
  top: 1.1rem;
  right: 1.5rem;
}

.auth-wrapper {
  width: 100%;
  max-width: 460px;
}

.auth-card {
  width: 100%;
  background: var(--auth-card-bg);
  border-radius: 16px;
  box-shadow: var(--auth-shadow);
  border: 1px solid var(--auth-border);
}

.auth-card .card-body {
  padding: 1.5rem 1.75rem 1.25rem;
}

.auth-logo {
  text-align: center;
  margin-bottom: 1rem;
}

.auth-logo h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--zero-primary);
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
}

.auth-logo .subtitle {
  font-size: 0.9rem;
  color: var(--auth-text-muted);
  margin-bottom: 0;
}

.auth-form .mb-3 {
  margin-bottom: 0.65rem !important;
}

.auth-form .mb-4 {
  margin-bottom: 0.75rem !important;
}

.auth-form .form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--auth-text);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-form .form-control {
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--auth-border);
  font-size: 0.9rem;
  padding: 0 0.9rem;
  background-color: var(--auth-input-bg);
  color: var(--auth-input-color);
}

.auth-form .form-control:focus {
  border-color: var(--zero-primary);
  box-shadow: 0 0 0 3px var(--zero-primary-light);
  outline: none;
  background-color: var(--auth-input-bg);
  color: var(--auth-input-color);
}

.auth-form .form-control::placeholder {
  color: var(--auth-placeholder);
}

.auth-form .form-check {
  padding-left: 1.6rem;
}

.auth-form .form-check-input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  border-radius: 4px;
  border: 2px solid var(--auth-border);
  background-color: var(--auth-input-bg);
}

.auth-form .form-check-input:checked {
  background-color: var(--zero-primary);
  border-color: var(--zero-primary);
}

.auth-form .form-check-label {
  font-size: 0.9rem;
  color: var(--auth-text);
}

.auth-form .form-check-label a {
  color: var(--zero-primary);
  text-decoration: none;
}

.auth-form .form-check-label a:hover {
  color: var(--zero-primary-hover);
  text-decoration: none;
}

.auth-link {
  font-size: 0.9rem;
  color: var(--zero-primary);
  text-decoration: none;
}

.auth-link:hover {
  color: var(--zero-primary-hover);
  text-decoration: underline;
}

.auth-card .btn-primary,
.btn-zero-primary,
.btn-zero-outline,
.auth-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  border-radius: 12px;
}

.btn-zero-primary {
  height: 42px;
  font-size: 0.95rem;
  background-color: var(--zero-primary) !important;
  border-color: var(--zero-primary) !important;
  color: #fff !important;
}

.btn-zero-primary:hover,
.btn-zero-primary:focus {
  background-color: var(--zero-primary-hover) !important;
  border-color: var(--zero-primary-hover) !important;
  color: #fff !important;
}

.btn-zero-outline {
  height: 42px;
  font-size: 0.95rem;
  background-color: transparent !important;
  color: var(--zero-primary) !important;
  border: 2px solid var(--zero-primary);
}

.btn-zero-outline:hover,
.btn-zero-outline:focus {
  background-color: var(--zero-primary-light) !important;
  color: var(--zero-primary-hover) !important;
  border-color: var(--zero-primary-hover) !important;
}

.auth-footer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--auth-border);
}

.auth-footer p {
  font-size: 0.8rem;
  color: var(--auth-text-muted);
  margin-bottom: 0.4rem;
}

.auth-card .alert {
  border-radius: 10px;
  font-size: 0.875rem;
  border: none;
}

.auth-card .alert-danger {
  background: rgba(220, 53, 69, 0.08);
  color: #b02a37;
}

.auth-card .alert-info {
  background: var(--zero-primary-light);
  color: var(--zero-primary-hover);
}

.auth-card .alert-success {
  background: rgba(25, 135, 84, 0.08);
  color: #157347;
}

@media (max-width: 576px) {
  .auth-card .card-body {
    padding: 1.5rem 1.25rem 1.25rem;
  }
}

