@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

:root {
    --bg-dark:       #0f1117;
    --bg-card:       #1a1d27;
    --bg-input:      #22263a;
    --brand-blue:    #3563E9;
    --brand-blue-h:  #2952d4;
    --brand-blue-a:  #1e3ea8;
    --border:        rgba(255,255,255,0.08);
    --text-primary:  #f0f2f8;
    --text-secondary:#8b90a7;
    --text-muted:    #555a72;
    --error:         #e05c5c;
    --error-bg:      rgba(224,92,92,0.1);
}

html, body {
    height: 100%;
    background-color: var(--bg-dark);
}

/* ── LAYOUT WRAPPER ─────────────────────────────────────── */
.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ── LADO ESQUERDO — BRANDING ────────────────────────────── */
.login-brand {
    flex: 1;
    background: linear-gradient(145deg, #0d1b4b 0%, #0f2d6b 40%, #1a3a8a 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 56px;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(53,99,233,0.25) 0%, transparent 70%);
    pointer-events: none;
}

.login-brand::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(53,99,233,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.brand-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 1;
}

.brand-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 36px;
}

.brand-icon svg {
    width: 72px;
    height: 72px;
}

.brand-name {
    font-size: 64px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -2px;
    line-height: 1;
}

.brand-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    letter-spacing: 4px;
    margin-top: 6px;
}

.brand-divider {
    width: 48px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    margin: 28px 0;
}

.brand-description {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    max-width: 300px;
}

.brand-footer {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    position: relative;
    z-index: 1;
}

/* ── LADO DIREITO — FORMULÁRIO ───────────────────────────── */
.login-form-side {
    width: 480px;
    min-width: 480px;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
}

.login-card {
    width: 100%;
    max-width: 380px;
}

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

.login-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-header p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── ERRO ───────────────────────────────────────────────── */
.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--error-bg);
    border: 1px solid rgba(224,92,92,0.25);
    color: var(--error);
    font-size: 13px;
    font-weight: 500;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 24px;
}

/* ── FORM GROUPS ────────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper:focus-within {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(53,99,233,0.15);
}

.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.input-wrapper input {
    flex: 1;
    height: 50px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
    padding: 0 4px;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.toggle-password {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0 14px;
    height: 50px;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--text-secondary);
}

/* ── BOTÃO ──────────────────────────────────────────────── */
.btn-login {
    width: 100%;
    height: 52px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--brand-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    letter-spacing: 0.2px;
}

.btn-login:hover {
    background-color: var(--brand-blue-h);
}

.btn-login:active {
    background-color: var(--brand-blue-a);
    transform: scale(0.99);
}

/* ── DISCLAIMER ─────────────────────────────────────────── */
.login-disclaimer {
    margin-top: 28px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── RESPONSIVO ─────────────────────────────────────────── */
@media (max-width: 820px) {
    .login-brand {
        display: none;
    }

    .login-form-side {
        width: 100%;
        min-width: unset;
        padding: 48px 24px;
    }

    .login-card {
        max-width: 100%;
    }
}
