﻿/* ============================================================
   ESCALA TIPOGRÁFICA GLOBAL
   Âncora do rem base — 1rem = 16px em todos os ambientes.
   Garante consistência independente do browser ou Docker/Azure.
   ============================================================ */
html {
  font-size: 16px;
}

body {
  font-size: 1rem;
  line-height: 1.5;
}

/* ============================================================
   LOGIN PAGE — Modern Split-Screen Layout
   ============================================================ */

/* ----- RESET SCOPED ----- */
.login-page *,
.login-page *::before,
.login-page *::after {
  box-sizing: border-box;
}

.login-page {
  display: flex;
  min-height: 100vh;
  font-family: 'Open Sans', sans-serif;
}

/* ----- SPLIT WRAPPER ----- */
.login-split {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ============================================================
   LEFT PANEL — BRAND
   ============================================================ */
.login-brand {
  flex: 0 0 44%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 4rem;
  position: relative;
  overflow: hidden;
  border-right: 1px solid #eaecef;
}

/* Decorative circles */
.login-brand::before {
  content: '';
  position: absolute;
  top: -130px;
  right: -90px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(230, 114, 41, 0.05);
  pointer-events: none;
}

.login-brand::after {
  content: '';
  position: absolute;
  bottom: -110px;
  left: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(230, 114, 41, 0.05);
  pointer-events: none;
}

.login-brand-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 380px;
  width: 100%;
}

.login-brand-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 2.5rem;
}

.login-brand-logo.custom {
  max-width: 180px;
}

.login-brand-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 0.85rem;
}

.login-brand-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.65;
}

/* ============================================================
   RIGHT PANEL — FORM
   ============================================================ */
.login-form-area {
  flex: 1;
  background: #f3f4f6;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 3rem;
}

.login-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 2.75rem 2.75rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
}

.login-card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.35rem;
}

.login-card-subtitle {
  font-size: 0.855rem;
  color: #6b7280;
  margin: 0 0 2rem;
}

/* ----- VALIDATION ----- */
.login-card .validation-summary-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: #991b1b;
}

.login-card .validation-summary-errors ul {
  margin: 0;
  padding-left: 1.2rem;
}

/* ----- FORM FIELDS ----- */
.login-field {
  margin-bottom: 1.15rem;
}

.login-field-label {
  display: block;
  font-size: 0.775rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  margin-bottom: 0.45rem;
}

.login-field .form-control {
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.875rem;
  color: #111827;
  width: 100%;
  background: #fafafa;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  outline: none;
}

.login-field .form-control:focus {
  border-color: #e67229;
  box-shadow: 0 0 0 3px rgba(230, 114, 41, 0.12);
  background: #fff;
}

.login-field .form-control::placeholder {
  color: #b0b7c3;
}

/* ----- FORGOT PASSWORD ----- */
.login-forgot {
  text-align: right;
  margin: -0.25rem 0 1.5rem;
}

.login-forgot a {
  font-size: 0.8rem;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.15s ease;
}

.login-forgot a:hover {
  color: #e67229;
}

/* ----- STATUS ICON (success / error) ----- */
.login-status-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

.login-status-success {
  background: #dcfce7;
  color: #16a34a;
}

.login-status-error {
  background: #fee2e2;
  color: #dc2626;
}

/* ----- PASSWORD RULES LIST ----- */
.login-card-rules {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.login-card-rules li {
  font-size: 0.8rem;
  color: #6b7280;
  padding: 0.2rem 0 0.2rem 1.25rem;
  position: relative;
}

.login-card-rules li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #e67229;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ----- PRIMARY BUTTON ----- */
.btn-login {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #e67229;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  text-align: center;
  text-decoration: none;
}
  background: #cf621e;
  box-shadow: 0 4px 12px rgba(230, 114, 41, 0.35);
  transform: translateY(-1px);
}

.btn-login:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ----- DIVIDER ----- */
.login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 1.15rem;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.login-divider span {
  font-size: 0.78rem;
  color: #9ca3af;
  white-space: nowrap;
}

/* ----- REGISTER BUTTON ----- */
.btn-register {
  display: block;
  width: 100%;
  padding: 0.68rem 1rem;
  background: transparent;
  color: #e67229;
  border: 1.5px solid #e67229;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.18s ease;
  cursor: pointer;
}

.btn-register:hover {
  background: #e67229;
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .login-split {
    flex-direction: column-reverse;
  }

  .login-brand {
    flex: 0 0 auto;
    padding: 2.5rem 2rem 2rem;
    border-right: none;
    border-top: 1px solid #eaecef;
  }

  .login-brand-logo {
    max-width: 150px;
    margin-bottom: 1rem;
  }

  .login-brand-title {
    font-size: 1.25rem;
  }

  .login-brand-subtitle {
    font-size: 0.83rem;
  }

  .login-form-area {
    padding: 2rem 1.25rem;
  }

  .login-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 400px) {
  .login-card {
    padding: 1.75rem 1.25rem;
  }
}
/* ── Password Recovery ─────────────────────────────────────────── */
.recovery-token-input {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin: 1.5rem 0;
}
.token-box {
  width: 3rem;
  height: 3.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid #e5e7eb;
  border-radius: .5rem;
  transition: border-color .2s;
  background: #fff;
  color: #111827;
}
.token-box:focus {
  border-color: #e67229;
  outline: none;
  box-shadow: 0 0 0 3px rgba(230,114,41,.15);
}
.recovery-method-option {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: .5rem;
  cursor: pointer;
  margin-bottom: .75rem;
  transition: border-color .2s, background .2s;
}
.recovery-method-option:hover { border-color: #e67229; background: #fff7f0; }
.recovery-method-option input[type="radio"] { accent-color: #e67229; }
.recovery-method-option.selected { border-color: #e67229; background: #fff7f0; }
.pw-rules { display: none; } /* legado — substituído por .password-rules */

.password-rules {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
}
.password-rules-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #334155;
}
.password-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #ef4444;
  transition: color .2s;
}
.password-rule:last-child { margin-bottom: 0; }
.rule-icon {
  width: 20px;
  flex-shrink: 0;
  text-align: center;
  font-weight: 700;
  color: inherit;
}
.password-rule.valid {
  color: #16a34a;
}
.recovery-resend {
  text-align: center;
  margin-top: .75rem;
  font-size: .85rem;
}
.recovery-resend a { color: #e67229; text-decoration: none; }
.recovery-resend a:hover { text-decoration: underline; }
