/* ============================================================
   Login iGuardian — split-screen (painel azul + card de acesso).
   Escopo isolado sob .igu-login para não vazar no restante do app.
   Usa tokens de variables.css via var().
   ============================================================ */
.igu-login {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: #eef2ff;
    font-family: var(--app-font);
}

/* ---------- Painel esquerdo (marca) ---------- */
.igu-login-brand {
    position: relative;
    overflow: hidden;
    flex: 1 1 46%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 72px;
    color: #fff;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #60a5fa 100%);
}

.igu-login-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(1100px 600px at 85% -10%, rgba(255, 255, 255, 0.35), transparent 60%),
        radial-gradient(700px 500px at -10% 110%, rgba(30, 58, 138, 0.55), transparent 60%);
    pointer-events: none;
}

.igu-login-brand::after {
    content: "";
    position: absolute;
    top: -20%;
    right: -35%;
    width: 90%;
    height: 140%;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.igu-login-logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.igu-login-logo .fa-shield {
    font-size: 34px;
}

.igu-login-brand h1 {
    position: relative;
    z-index: 1;
    margin: 56px 0 16px;
    font-size: 44px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
    max-width: 480px;
}

.igu-login-brand p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    max-width: 440px;
}

.igu-login-art {
    position: relative;
    z-index: 1;
    margin-top: 48px;
    max-width: 420px;
}

/* ---------- Lado direito (formulário) ---------- */
.igu-login-side {
    position: relative;
    overflow: hidden;
    flex: 1 1 54%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: linear-gradient(180deg, #f4f6ff 0%, #e9eefe 100%);
}

.igu-login-side::before,
.igu-login-side::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    pointer-events: none;
}

.igu-login-side::before {
    width: 520px;
    height: 520px;
    right: -160px;
    bottom: -200px;
}

.igu-login-side::after {
    width: 280px;
    height: 280px;
    left: -100px;
    top: -80px;
}

.igu-login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    background: var(--app-surface);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(30, 58, 138, 0.16);
    padding: 44px 44px 40px;
}

.igu-login-card-head {
    text-align: center;
    margin-bottom: 28px;
}

.igu-login-card-head .igu-login-logo {
    justify-content: center;
    color: var(--app-text);
    font-size: 24px;
}

.igu-login-card-head .igu-login-logo .fa-shield {
    color: var(--app-primary);
    font-size: 30px;
}

.igu-login-card-head h2 {
    margin: 20px 0 6px;
    font-size: 26px;
    font-weight: 800;
    color: var(--app-text);
    letter-spacing: -0.02em;
}

.igu-login-card-head p {
    margin: 0;
    font-size: 14px;
    color: var(--app-text-muted);
}

.igu-login-field {
    margin-bottom: 18px;
}

.igu-login-field > label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--app-text);
}

.igu-login-input {
    position: relative;
}

.igu-login-input .fa {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 15px;
    pointer-events: none;
}

.igu-login-input .form-control {
    padding-left: 40px;
    height: 46px;
    border-radius: 10px;
    border-color: var(--app-border-strong);
    font-size: 14px;
}

.igu-login-input .form-control:focus {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.igu-login-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 16px;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 8px;
}

.igu-login-eye:hover {
    color: var(--app-primary);
    background: var(--app-primary-soft);
}

.igu-login-submit {
    width: 100%;
    height: 48px;
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    background: var(--app-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.igu-login-submit:hover {
    background: var(--app-primary-hover);
}

.igu-login-submit:active {
    transform: translateY(1px);
}

/* ---------- Responsivo ---------- */
@media (max-width: 992px) {
    .igu-login {
        flex-direction: column;
    }

    .igu-login-brand {
        flex: none;
        padding: 40px 32px 48px;
    }

    .igu-login-brand h1 {
        font-size: 32px;
        margin-top: 32px;
    }

    .igu-login-art {
        display: none;
    }

    .igu-login-side {
        flex: none;
        padding: 32px 16px 48px;
    }

    .igu-login-card {
        padding: 32px 24px 28px;
    }
}
