/* admin-auth.css */
:root {
  --bg-dark: #0A0A0A;
  --bg-light: #FAFAFA;
  --text-dark: #111827;
  --text-muted: #6B7280;
  --text-light: #FFFFFF;
  --text-light-muted: #9CA3AF;
  --brand-orange: #ff9a1f;
  --brand-orange-hover: #ff6a00;
  --border-color: #E5E7EB;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  --radius-lg: 24px;
  --radius-md: 12px;
  --success: #16A34A;
  --error: #DC2626;
  --warning: #F97316;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

* { box-sizing: border-box; }

/* Layout Split */
.auth-layout {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Left Panel - Dark */
.auth-panel-dark {
  flex: 0 0 45%;
  background: var(--bg-dark);
  position: relative;
  padding: 60px;
  display: flex;
  flex-direction: column;
  color: var(--text-light);
  overflow-y: auto;
}

/* Fundo do tigre */
.auth-panel-dark::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../img/tiger-bg.jpg') center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}
.auth-panel-dark > * {
  position: relative;
  z-index: 1;
}

.auth-brand-logo {
  max-width: 160px;
  margin-bottom: 60px;
}

.auth-hero-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 40px;
}
.auth-hero-title span {
  color: var(--brand-orange);
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 60px;
}
.auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.auth-feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light-muted);
}
.auth-feature-text h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-light);
}
.auth-feature-text p {
  margin: 0;
  font-size: 13px;
  color: var(--text-light-muted);
  line-height: 1.4;
}

.auth-dark-cards {
  display: flex;
  gap: 20px;
  margin-top: auto;
}
.auth-dark-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px;
  flex: 1;
}
.auth-dark-card h4 {
  margin: 0 0 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-dark-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-light-muted);
  line-height: 1.5;
}
.auth-dark-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-dark-card li {
  font-size: 12px;
  color: var(--text-light-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-dark-card li::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%2316A34A" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><polyline points="20 6 9 17 4 12"></polyline></svg>') center/contain no-repeat;
}

/* Right Panel - Light */
.auth-panel-light {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
}

.auth-top-badge {
  position: absolute;
  top: 30px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

.auth-form-container {
  margin: auto;
  width: 100%;
  max-width: 520px;
  padding: 40px 20px;
}

.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px;
  text-align: center;
}

.auth-card-icon {
  width: 56px;
  height: 56px;
  background: #FFF0EB;
  color: var(--brand-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.auth-card h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
}
.auth-card > p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 32px;
  line-height: 1.5;
}

.auth-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}
.auth-input-group {
  position: relative;
}
.auth-input-group svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.auth-input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 16px 0 44px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  background: #fff;
}

.auth-input-group.password-field .auth-input {
  padding-right: 48px;
}
.auth-input:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(255, 74, 22, 0.1);
}

.auth-password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.auth-password-toggle:hover { color: var(--text-dark); }

.auth-info-box {
  background: #F9FAFB;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.auth-info-box svg { flex-shrink: 0; color: var(--text-dark); }

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
}
.auth-checkbox input {
  accent-color: var(--brand-orange);
  width: 16px; height: 16px;
  cursor: pointer;
}

.auth-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-orange);
  text-decoration: none;
  transition: opacity 0.2s;
}
.auth-link:hover { opacity: 0.8; }

.auth-btn {
  width: 100%;
  height: 52px;
  background: var(--bg-dark);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-btn:hover {
  background: #222;
  transform: translateY(-1px);
}
.auth-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.auth-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.auth-badge svg { color: var(--brand-orange); }

.auth-footer {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-muted);
}

/* OTP Inputs */
.otp-container {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 20px 0;
}
.otp-input {
  width: 56px;
  height: 64px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  background: #fff;
  transition: all 0.2s;
}
.otp-input:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(255, 74, 22, 0.1);
}

/* Stepper */
.auth-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
}
.auth-stepper::before {
  content: '';
  position: absolute;
  top: 14px; left: 10%; right: 10%;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}
.auth-stepper::after {
  content: '';
  position: absolute;
  top: 14px; left: 10%; width: var(--stepper-progress, 0%);
  height: 2px;
  background: var(--brand-orange);
  z-index: 1;
  transition: width 0.3s ease;
}
.stepper-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 0 8px;
}
.stepper-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.3s;
}
.stepper-item.active .stepper-circle {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}
.stepper-item.completed .stepper-circle {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}
.stepper-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.stepper-item.active .stepper-label { color: var(--text-dark); }

/* Checklist */
.password-rules {
  background: #F9FAFB;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rule-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}
.rule-item svg { width: 14px; height: 14px; }
.rule-item.valid { color: var(--success); }

/* Status */
.auth-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.auth-alert.error { background: #FEF2F2; color: var(--error); border: 1px solid #FECACA; }
.auth-alert.success { background: #F0FDF4; color: var(--success); border: 1px solid #BBF7D0; }

@media (max-width: 992px) {
  .auth-layout { flex-direction: column; overflow-y: auto; }
  .auth-panel-dark { flex: none; padding: 40px 20px; }
  .auth-brand-logo { margin-bottom: 30px; }
  .auth-dark-cards { flex-direction: column; }
  .auth-top-badge { display: none; }
  .auth-card { padding: 32px 20px; }
  .otp-input { width: 45px; height: 55px; font-size: 20px; }
}
