/* =============================================================================
   LOGIN — split-screen, dark brand + light form (estilo bancarioslondrina)
   ============================================================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #0f172a;
    background: #f8fafc;
    -webkit-font-smoothing: antialiased;
}

.auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ------------ LADO ESQUERDO (BRAND) ------------ */
.auth__brand {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px;
    color: #f1f5f9;
    background-color: #0f172a;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.auth__brand::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 107, 0, .35) 0%, transparent 45%),
        radial-gradient(circle at 80% 75%, rgba(255, 133, 51, .22) 0%, transparent 45%);
    pointer-events: none;
}

.auth__brand > * { position: relative; z-index: 1; }

.auth__brand-logo img {
    max-height: 56px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}

.auth__brand-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.auth__brand-footer p { margin: 0; font-size: 16px; font-weight: 500; opacity: .85; }
.auth__brand-footer small { font-size: 13px; opacity: .5; }

/* ------------ LADO DIREITO (FORM) ------------ */
.auth__form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background: #ffffff;
}

.auth__form-inner { width: 100%; max-width: 420px; }

.auth__title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.auth__subtitle {
    margin: 0 0 32px;
    font-size: 15px;
    color: #64748b;
}

.auth__fields { display: flex; flex-direction: column; gap: 18px; }
.auth__field { display: flex; flex-direction: column; gap: 6px; }
.auth__label { font-size: 13px; font-weight: 500; color: #334155; }

.auth__input-wrap { position: relative; display: flex; align-items: center; }

.auth__input-wrap > i {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
    transition: color .15s ease;
}

.auth__input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    font-family: inherit;
    font-size: 15px;
    color: #0f172a;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.auth__input-wrap input::placeholder { color: #cbd5e1; }
.auth__input-wrap input:hover { border-color: #cbd5e1; }
.auth__input-wrap input:focus {
    border-color: #ff6b00;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15);
}
.auth__input-wrap:focus-within > i { color: #ff6b00; }

.auth__toggle-pass {
    position: absolute;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 6px;
    transition: color .15s ease, background-color .15s ease;
}
.auth__toggle-pass:hover { color: #0f172a; background: #f1f5f9; }

.auth__submit {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.auth__submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.35);
}
.auth__submit:active:not(:disabled) { transform: translateY(0); }
.auth__submit:disabled { opacity: .6; cursor: wait; }
.auth__submit i { transition: transform .2s ease; }
.auth__submit:hover:not(:disabled) i { transform: translateX(3px); }

.auth__alert {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
}
.auth__alert.show { display: flex; }

.auth__forgot {
    display: block;
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    transition: color .15s ease;
}
.auth__forgot:hover { color: #ff6b00; }

.auth__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    transition: color .15s ease;
}
.auth__back:hover { color: #ff6b00; }

.auth__success {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}
.auth__success i { font-size: 20px; flex-shrink: 0; margin-top: 2px; }

.auth__field-error {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #dc2626;
}

.auth__form-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}
.auth__form-footer a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    transition: color .15s ease;
}
.auth__form-footer a:hover { color: #ff6b00; }

@media (max-width: 900px) {
    .auth { grid-template-columns: 1fr; }
    .auth__brand { display: none; }
    .auth__form { padding: 24px 20px; min-height: 100vh; }
}

@media (max-width: 480px) {
    .auth__title { font-size: 24px; }
}
