/* ===== VARIÁVEIS E RESET ===== */
:root {
  --bg: #0a0a0a;
  --panel: #101114;
  --panel-2: #15171a;
  --text: #ffffff;
  --muted: #9aa3ad;
  --brand: #ff6a00;
  --brand-2: #ff9a3d;
  --success: #21c07a;
  --danger: #ff4d4d;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(0,0,0,.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.auth-body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ===== NOVO LAYOUT DE LOGIN ===== */
.auth-container {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  position: relative;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 106, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 154, 61, 0.08) 0%, transparent 50%);
  z-index: 0;
}

.auth-left {
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.auth-brand {
  text-align: center;
  margin-bottom: 50px;
}

.auth-brand h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 10px 0;
}

.auth-brand p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  color: #0a0a0a;
}

.feature-text h4 {
  margin: 0 0 5px 0;
  font-size: 1rem;
  color: var(--text);
}

.feature-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Form Container */
.auth-form-container {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  border-radius: 12px;
}

.auth-tab {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0a0a0a;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.btn-auth {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-auth-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0a0a0a;
}

.btn-auth-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 106, 0, 0.3);
}

.btn-auth-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-auth-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.auth-divider {
  text-align: center;
  margin: 25px 0;
  position: relative;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.auth-divider span {
  background: var(--panel);
  padding: 0 15px;
  position: relative;
  z-index: 2;
}

.auth-footer {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Estados de formulário */
.form-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin: 15px 0;
  font-size: 0.9rem;
  text-align: center;
}

.form-message.error {
  background: rgba(255, 77, 77, 0.1);
  color: #ff6a66;
  border: 1px solid rgba(255, 77, 77, 0.2);
}

.form-message.success {
  background: rgba(33, 192, 122, 0.1);
  color: #21c07a;
  border: 1px solid rgba(33, 192, 122, 0.2);
}

/* Loading state */
.btn-auth.loading {
  position: relative;
  color: transparent;
}

.btn-auth.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 968px) {
  .auth-container {
    grid-template-columns: 1fr;
  }
  
  .auth-left {
    display: none;
  }
  
  .auth-form-container {
    margin: 20px;
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .auth-form-container {
    padding: 25px;
    margin: 10px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .auth-brand h1 {
    font-size: 2rem;
  }
}