/* Auth Suite Shared Styles — Almir Diniz Consultoria */
:root {
  --bg: #0a0a0a;
  --graphite: #131411;
  --graphite-2: #1b1c18;
  --line: rgba(201, 164, 92, 0.28);
  --line-soft: rgba(255, 255, 255, 0.12);
  --text: #f4efe4;
  --paper: #f4efe4;
  --muted: #a9a496;
  --gold: #c9a45c;
  --gold-hi: #dfc07d;
  --gold-glow: rgba(201, 164, 92, 0.2);
  --error: #e63946;
  --error-bg: rgba(230, 57, 70, 0.12);
  --error-border: rgba(230, 57, 70, 0.4);
  --success: #2a9d8f;
  --success-bg: rgba(42, 157, 143, 0.14);
  --success-border: rgba(42, 157, 143, 0.45);
  --info-bg: rgba(201, 164, 92, 0.12);
  --info-border: rgba(201, 164, 92, 0.35);
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body.auth-page, body.login-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: clamp(16px, 3vh, 32px) clamp(16px, 4vw, 24px);
  background:
    radial-gradient(ellipse 65% 50% at 50% 15%, rgba(201, 164, 92, 0.14), transparent 70%),
    linear-gradient(180deg, #0e0f0c 0%, #070706 100%);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.auth-shell, .login-shell {
  width: 100%;
  max-width: 440px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Navigation */
.auth-nav, .login-nav {
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.auth-back, .login-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color .2s ease, background-color .2s ease;
}

.auth-back:hover, .login-back:hover {
  color: var(--gold);
  background: rgba(201, 164, 92, 0.08);
}

.auth-back:focus-visible, .login-back:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Card */
.auth-card, .login-card {
  width: 100%;
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(24px, 5vw, 40px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.auth-card::before, .login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Header inside card */
.auth-header, .login-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-brand, .login-brand {
  display: inline-block;
  line-height: 0;
  margin-bottom: 18px;
  transition: transform .25s ease;
}

.auth-brand:hover, .login-brand:hover {
  transform: scale(1.02);
}

.auth-brand img, .login-brand img {
  width: 195px;
  height: auto;
  display: block;
}

.auth-badge, .login-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  background: rgba(201, 164, 92, 0.1);
  border: 1px solid rgba(201, 164, 92, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.auth-title, .login-title, .auth-card h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(28px, 4.2vw, 34px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
}

.auth-subtitle, .login-subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

/* Forms & Inputs */
.auth-form, .login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group, .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  margin-bottom: 14px;
}

.input-group label, .form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #dfdbcf;
}

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

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--gold);
  opacity: 0.85;
  pointer-events: none;
  flex-shrink: 0;
}

.input-group input, .form-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: #0d0e0b;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--body);
  font-size: 14.5px;
  line-height: 1;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  outline: none;
}

.has-icon .form-input, .input-wrapper input {
  padding-left: 44px;
}

.input-group input:hover, .form-input:hover {
  border-color: rgba(201, 164, 92, 0.4);
}

.input-group input:focus, .form-input:focus {
  border-color: var(--gold);
  background: #11120e;
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.input-group input[readonly], .form-input[readonly] {
  opacity: 0.75;
  background: #090907;
  cursor: not-allowed;
}

/* Submit Buttons */
.btn-submit, .btn-login {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: #0c0d0a;
  border: 0;
  border-radius: 8px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 24px;
  margin-top: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.btn-submit:hover:not(:disabled), .btn-login:hover:not(:disabled) {
  background: var(--gold-hi);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -4px rgba(201, 164, 92, 0.4);
}

.btn-submit:active:not(:disabled), .btn-login:active:not(:disabled) {
  transform: scale(0.99);
}

.btn-submit:disabled, .btn-login:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-submit:focus-visible, .btn-login:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Alerts */
.alert, .login-alert {
  padding: 13px 15px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  margin-bottom: 18px;
  text-align: left;
  display: block;
}

.alert-error, .login-alert-error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: #ffa1a9;
  animation: shake 0.35s ease;
}

.alert-success, .login-alert-success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: #72efdd;
}

.alert-info {
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  color: #e5cd96;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* Footers */
.auth-footer, .login-card-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.auth-footer a, .login-card-footer a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}

.auth-footer a:hover, .login-card-footer a:hover {
  color: var(--gold-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-page-footer, .login-page-footer {
  width: 100%;
  max-width: 440px;
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: #706c62;
}

@media (max-width: 480px) {
  body.auth-page, body.login-page {
    padding: 14px 12px;
  }
  .auth-card, .login-card {
    padding: 24px 18px;
    border-radius: 12px;
  }
  .auth-brand img, .login-brand img {
    width: 165px;
  }
}

