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

:root {
    --blue-900: #042C53;
    --blue-800: #0C447C;
    --blue-600: #185FA5;
    --blue-400: #378ADD;
    --blue-200: #85B7EB;
    --blue-100: #B5D4F4;
    --blue-50:  #E6F1FB;
    --gray-200: #e8eaf0;
    --gray-100: #f4f5f8;
    --gray-50:  #fafbfc;
    --text-main: #1c2333;
    --text-muted: #5a6378;
    --text-hint: #8e97ab;
    --border: rgba(0,0,0,0.08);
    --border-focus: #378ADD;
    --white: #ffffff;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-card: 0 4px 24px rgba(12, 68, 124, 0.10), 0 1px 4px rgba(0,0,0,0.06);
}

html, body {
    height: 100%;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    background: var(--gray-100);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* ── Página ── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--gray-100);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(55,138,221,0.08) 0%, transparent 55%),
        radial-gradient(circle at 85% 20%, rgba(12,68,124,0.06) 0%, transparent 50%);
}

/* ── Card principal ── */
.login-card {
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 540px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

/* ── Painel esquerdo ── */
.panel-left {
    width: 42%;
    background: var(--blue-800);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px 40px;
    position: relative;
    overflow: hidden;
}

.panel-left::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(55,138,221,0.12);
    pointer-events: none;
}

.panel-left::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(4,44,83,0.3);
    pointer-events: none;
}

.brand {
    position: relative;
    z-index: 1;
}

.brand-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.brand-icon i {
    font-size: 22px;
    color: var(--blue-100);
}

.brand-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.brand-desc {
    font-size: 13px;
    color: var(--blue-200);
    line-height: 1.7;
}

.panel-footer {
    position: relative;
    z-index: 1;
}

.divider {
    width: 32px;
    height: 2px;
    background: var(--blue-400);
    border-radius: 2px;
    margin-bottom: 14px;
}

.inst-label {
    font-size: 11px;
    color: var(--blue-200);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.inst-name {
    font-size: 12px;
    color: var(--blue-100);
    line-height: 1.5;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.tag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    color: var(--blue-200);
    border: 1px solid rgba(255,255,255,0.12);
}

/* ── Painel direito ── */
.panel-right {
    flex: 1;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 48px;
}

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

.form-header {
    margin-bottom: 32px;
}

.form-eyebrow {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue-400);
    margin-bottom: 8px;
}

.form-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.4px;
    margin-bottom: 4px;
}

.form-sub {
    font-size: 13px;
    color: var(--text-muted);
}

/* ── Campos ── */
.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.input-wrap {
    position: relative;
}

.input-wrap .icon-left {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--text-hint);
    pointer-events: none;
    transition: color 0.15s;
}

.input-wrap input {
    width: 100%;
    height: 42px;
    padding: 0 13px 0 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.input-wrap input:focus {
    border-color: var(--border-focus);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--blue-50);
}

.input-wrap:focus-within .icon-left {
    color: var(--blue-400);
}

.input-wrap input::placeholder {
    color: var(--text-hint);
    font-size: 13px;
}

.btn-eye {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-hint);
    padding: 4px;
    font-size: 15px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.btn-eye:hover { color: var(--blue-400); }

/* ── reCAPTCHA ── */
.recaptcha-wrap {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

/* ── Botão entrar ── */
.btn-submit {
    width: 100%;
    height: 44px;
    background: var(--blue-600);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: 0.01em;
}

.btn-submit:hover { background: var(--blue-800); }
.btn-submit:active { transform: scale(0.99); }
.btn-submit i { font-size: 15px; }

/* ── Esqueci a senha ── */
.link-forgot {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 12px;
    color: var(--blue-400);
    text-decoration: none;
    transition: color 0.15s;
}

.link-forgot:hover { color: var(--blue-800); text-decoration: underline; }

/* ── Rodapé do form ── */
.form-footer {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    font-size: 11px;
    color: var(--text-hint);
    text-align: center;
    line-height: 1.6;
}

/* ── Alertas de erro do Laravel ── */
.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #b91c1c;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.alert-error i { font-size: 14px; margin-top: 1px; flex-shrink: 0; }

/* ── Responsivo ── */
@media (max-width: 640px) {
    .panel-left { display: none; }
    .panel-right { padding: 36px 28px; }
}
