/* =========================================
   VERBOO V2 CANONICAL AUTHENTICATION SYSTEM
   Single Visual & Interactive Authority (PO Polished)
   Applied across:
   - /login/
   - /register/
   - /forgot-password/
   - /reset-password/
   ========================================= */

:root {
  --auth-bg: #0B0F1A;
  --auth-surface: #151C2F;
  --auth-border: rgba(255, 255, 255, 0.08);
  --auth-border-focus: #38bdf8;
  --auth-text: #ffffff;
  --auth-muted: #a0aec0;
  --auth-accent: #06b6d4;
  --auth-accent-hover: #0891b2;
  --auth-error: #f87171;
  --auth-success: #34d399;
}

* {
  box-sizing: border-box;
}

body.v2-auth-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--auth-bg);
  background-image: 
    radial-gradient(circle at 18% 22%, rgba(59, 130, 246, 0.12), transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(34, 211, 238, 0.08), transparent 42%);
  color: var(--auth-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.v2-auth-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.v2-auth-card {
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}

.v2-auth-header {
  text-align: center;
  margin-bottom: 22px;
}

.v2-auth-brand {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--auth-muted);
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  transition: color 0.15s ease;
}

.v2-auth-brand:hover {
  color: #ffffff;
}

.v2-auth-title {
  margin: 0 0 6px 0;
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--auth-text);
  line-height: 1.2;
}

.v2-auth-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--auth-muted);
  line-height: 1.45;
}

.v2-auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.v2-auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.v2-auth-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--auth-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.v2-auth-input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.v2-auth-input::placeholder {
  color: #64748b;
}

.v2-auth-input:focus {
  border-color: var(--auth-border-focus);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.v2-auth-btn-primary {
  width: 100%;
  height: 46px;
  margin-top: 4px;
  background: var(--auth-accent);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s ease;
}

.v2-auth-btn-primary:hover:not(:disabled) {
  background: var(--auth-accent-hover);
}

.v2-auth-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.v2-auth-forgot {
  text-align: right;
  margin-top: -4px;
  margin-bottom: 2px;
}

.v2-auth-forgot a {
  font-size: 0.84rem;
  color: var(--auth-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.v2-auth-forgot a:hover {
  color: #ffffff;
}

.v2-auth-divider {
  margin: 18px 0 16px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.v2-auth-footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--auth-muted);
}

.v2-auth-footer a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
  transition: opacity 0.15s ease;
}

.v2-auth-footer a:hover {
  opacity: 0.85;
}

.v2-auth-back-home {
  text-align: center;
  margin-top: 14px;
}

.v2-auth-back-home a {
  font-size: 0.875rem;
  color: var(--auth-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.v2-auth-back-home a:hover {
  color: #ffffff;
}

.v2-auth-message {
  min-height: 18px;
  margin-top: 10px;
  font-size: 0.875rem;
  text-align: center;
  color: var(--auth-error);
}

.v2-auth-message.success {
  color: var(--auth-success);
}

@media (max-width: 480px) {
  body.v2-auth-page {
    padding: 16px 12px;
    justify-content: flex-start;
  }
  .v2-auth-card {
    padding: 28px 20px;
    border-radius: 20px;
  }
}
