/* ===================================================
   RENT ASSURE — CSS LOGIN / RECUPERAR SENHA
   =================================================== */

:root {
  --blue:       #4A6FE0;
  --blue-dark:  #3A5FD0;
  --blue-light: #EEF2FF;
  --blue-mid:   #C7D9FF;
  --text:       #1A1D2E;
  --text-mid:   #4A4E6A;
  --text-light: #8891B2;
  --border:     #E4E8F4;
  --surface:    #F8F9FC;
  --white:      #FFFFFF;
  --success:    #3A9E6A;
  --error:      #DC2626;

  --font-d: 'Sora', sans-serif;
  --font-b: 'Inter', sans-serif;
  --r:  12px;
  --rl: 20px;
  --tr: 0.22s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-b);
  color: var(--text);
  background: var(--surface);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ===== LOGIN LAYOUT ===== */
.login-page { background: var(--surface); }

.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ===== VISUAL PANEL (esquerda) ===== */
.login-visual {
  position: relative;
  background: linear-gradient(145deg, #1A1D2E 0%, #2C3270 60%, #4A6FE0 130%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 48px;
}

.visual-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 400px;
  width: 100%;
}

.visual-brand { display: flex; align-items: center; }
.visual-logo { height: 38px; filter: brightness(0) invert(1); }

.visual-headline h2 {
  font-family: var(--font-d);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.visual-headline p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.visual-cards { display: flex; flex-direction: column; gap: 12px; }

.v-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r);
  padding: 16px 20px;
  transition: background var(--tr);
}
.v-card:hover { background: rgba(255,255,255,0.12); }

.v-card-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.v-card-icon svg { width: 18px; height: 18px; }

.v-card-label { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }
.v-card-val { display: block; font-family: var(--font-d); font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.9); }

.visual-footer { font-size: 0.75rem; color: rgba(255,255,255,0.3); }

/* Background circles */
.visual-bg-circles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.circle { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,0.06); }
.c1 { width: 500px; height: 500px; top: -150px; right: -200px; }
.c2 { width: 350px; height: 350px; bottom: -100px; left: -120px; background: rgba(74,111,224,0.08); }
.c3 { width: 200px; height: 200px; top: 40%; left: 20%; border-color: rgba(255,255,255,0.04); }

/* ===== FORM PANEL (direita) ===== */
.login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: var(--white);
}

.login-form-wrap { width: 100%; max-width: 400px; }

.login-logo-mobile { display: none; margin-bottom: 32px; }
.login-logo-mobile img { height: 34px; }

.login-header { margin-bottom: 32px; }
.login-header h1 {
  font-family: var(--font-d);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}
.login-header p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; }

/* ===== ALERTS ===== */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: 0.875rem;
  margin-bottom: 20px;
  line-height: 1.5;
}
.alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-error { background: #FEF2F2; color: var(--error); border: 1px solid #FECACA; }
.alert-info  { background: var(--blue-light); color: var(--blue); border: 1px solid var(--blue-mid); }

/* ===== FORM ===== */
.form-login, .form-recover { display: flex; flex-direction: column; gap: 18px; }

.field-group { display: flex; flex-direction: column; gap: 7px; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; }

label { font-size: 0.8rem; font-weight: 600; color: var(--text-mid); letter-spacing: 0.02em; }

.link-recuperar { font-size: 0.78rem; color: var(--blue); font-weight: 500; transition: opacity var(--tr); }
.link-recuperar:hover { opacity: 0.75; }

.field-wrap { position: relative; display: flex; align-items: center; }

.field-icon {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  display: flex;
  pointer-events: none;
}
.field-icon svg { width: 16px; height: 16px; }

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 12px 44px 12px 42px;
  font-family: var(--font-b);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  outline: none;
  transition: all var(--tr);
  -webkit-appearance: none;
}
input:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(74,111,224,0.12);
}
input::placeholder { color: var(--text-light); }

.toggle-senha {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  display: flex;
  padding: 2px;
  transition: color var(--tr);
}
.toggle-senha:hover { color: var(--text-mid); }
.toggle-senha svg { width: 16px; height: 16px; }

/* ===== BUTTON LOGIN ===== */
.btn-login {
  width: 100%;
  padding: 14px 24px;
  background: var(--blue);
  color: white;
  font-family: var(--font-d);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--tr);
  box-shadow: 0 4px 20px rgba(74,111,224,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.btn-login:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(74,111,224,0.35); }
.btn-login:active { transform: translateY(0); }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; }

/* ===== DIVIDER & BOTTOM ===== */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 20px;
  color: var(--text-light);
  font-size: 0.75rem;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border);
}

.login-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.link-back {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.82rem; color: var(--text-mid);
  font-weight: 500; transition: color var(--tr);
}
.link-back:hover { color: var(--blue); }
.link-back svg { width: 14px; height: 14px; }
.login-copy { font-size: 0.75rem; color: var(--text-light); }

/* ===== RECUPERAR LAYOUT ===== */
.recover-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.recover-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(74,111,224,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.recover-logo { margin-bottom: 28px; }
.recover-logo img { height: 32px; }
.recover-icon { margin-bottom: 20px; }
.recover-icon svg { width: 56px; height: 56px; }

.recover-card h1 { font-family: var(--font-d); font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
.recover-sub { font-size: 0.875rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 28px; }

.form-recover { width: 100%; text-align: left; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-form-side { padding: 40px 24px; min-height: 100vh; }
  .login-logo-mobile { display: block; }
}
@media (max-width: 480px) {
  .login-form-side { padding: 32px 20px; }
  .login-form-wrap { max-width: 100%; }
  .recover-card { padding: 36px 24px; }
}
