/**
 * LOGIN.CSS - Estilos da página de autenticação
 * Arquivo autossuficiente: não depende de base_app.css
 */

/* ========================================
   VARIÁVEIS LOCAIS (complementam _variables.css)
   ======================================== */

:root {
  --radius-3xl: 24px;
  --shadow-2xl: 0 25px 50px rgba(20, 5, 36, 0.15);
}

/* ========================================
   RESET MÍNIMO
   ======================================== */

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

body {
  font-family: "Quicksand", system-ui, -apple-system, sans-serif;
  color: var(--femme-gray-dark);
}

/* ========================================
   LOGIN PAGE LAYOUT
   ======================================== */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(184, 161, 198, 0.18) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(88, 35, 109, 0.18) 0, transparent 55%),
    #fdfbff;
}

.login-shell {
  width: 100%;
  max-width: 1060px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

@media (max-width: 900px) {
  .login-shell { grid-template-columns: minmax(0, 1fr); }
  .hero { display: none; }
}

/* ========================================
   HERO (Lado Esquerdo)
   ======================================== */

.hero { padding-right: 12px; }

.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.brand-logo-login {
  width: 52px;
  height: 52px;
  border-radius: 40% 60% 55% 45%;
  background: radial-gradient(circle at 30% 30%, #b8a1c6 0, #58236d 55%, #32123f 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(50, 18, 63, 0.4);
  flex-shrink: 0;
}

.brand-logo-login::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  border: 1px solid rgba(254, 254, 254, 0.65);
}

.brand-text-login { display: flex; flex-direction: column; gap: 2px; }

.brand-name-login {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--femme-purple);
}

.brand-subtitle-login { font-size: 0.9rem; color: #6d6d6d; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(184, 161, 198, 0.16);
  color: var(--femme-purple);
  margin-bottom: 12px;
}

.hero-pill-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8c1de, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 8px rgba(88, 35, 109, 0.35);
  flex-shrink: 0;
}

.hero-tagline { font-size: 0.85rem; color: #777; }

.hero-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--femme-purple);
  margin-bottom: 8px;
  line-height: 1.2;
}

.hero-highlight { color: #9b5cb0; font-weight: 700; }

.hero-text {
  font-size: 0.98rem;
  color: #555;
  max-width: 420px;
  margin-bottom: 22px;
  line-height: 1.6;
}

/* ========================================
   LOGIN CARD (Lado Direito)
   ======================================== */

.login-card {
  background: #ffffff;
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-2xl);
  padding: 32px 28px 28px;
  border: 1px solid rgba(184, 161, 198, 0.28);
  max-width: 420px;
  width: 100%;
  margin-left: auto;
}

@media (max-width: 900px) { .login-card { margin: 0 auto; } }

.login-header { margin-bottom: 24px; }

.login-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--femme-purple);
  margin-bottom: 4px;
}

.login-subtitle { font-size: 0.9rem; color: #777; line-height: 1.4; }

/* ========================================
   FORM ELEMENTS
   ======================================== */

.field-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }

.field-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--femme-gray-dark);
}

.field-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid rgba(122, 61, 138, 0.2);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--femme-gray-dark);
  background: #fafafa;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.field-input:focus {
  border-color: var(--femme-purple);
  box-shadow: 0 0 0 3px rgba(122, 61, 138, 0.1);
  background: #fff;
}

.field-input::placeholder { color: #aaa; }

.password-wrapper { position: relative; }

.password-wrapper .field-input { padding-right: 44px; }

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  color: #aaa;
  transition: color 0.15s ease;
}

.toggle-password:hover { color: var(--femme-purple); }

.eye {
  display: block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* ========================================
   LOGIN ROW (remember + link)
   ======================================== */

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.82rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--femme-gray);
  user-select: none;
}

.checkbox input[type="checkbox"] { accent-color: var(--femme-purple); }

.link {
  color: var(--femme-purple);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
}

.link:hover { text-decoration: underline; }

/* ========================================
   BUTTON
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--femme-green), #009e8a);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 188, 164, 0.35);
}

.btn-primary:hover { opacity: 0.92; }

.w-full { width: 100%; }

/* ========================================
   ERROR BOX
   ======================================== */

.error-box {
  background: var(--femme-danger-soft, #fef2f2);
  color: var(--femme-danger, #d32f2f);
  border: 1px solid rgba(211, 47, 47, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* ========================================
   FOOTER TEXT
   ======================================== */

.login-footer-text {
  margin-top: 18px;
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  line-height: 1.5;
}

.login-footer-text strong { color: var(--femme-purple); font-weight: 600; }

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 600px) {
  .login-page { padding: 16px; }
  .login-card { padding: 24px 20px; }
  .hero-title { font-size: 1.8rem; }
}
