/* ============================================================
   PortalWeb - Login (Corporativo / Sutil / Limpo)
   Arquivo: wwwroot/css/login-portal.css
   ============================================================ */

:root {
    --card: var(--portal-card, rgba(255, 251, 246, 0.96));
    --border: var(--portal-border, #e4d7ca);
    --text: var(--portal-text, #241d18);
    --muted: var(--portal-muted, #75675a);
    --accent: var(--portal-accent, #9a7254);
    --accent-strong: var(--portal-accent-strong, #5d4636);
    --radius: 14px;
    --shadow: 0 18px 44px rgba(29, 49, 69, .10);
}

body.portalweb-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    background: transparent !important;
}

body.portalweb-login::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cg fill='%23ffffff' fill-opacity='0.24'%3E%3Ccircle cx='16' cy='18' r='1.2'/%3E%3Ccircle cx='68' cy='44' r='1.1'/%3E%3Ccircle cx='126' cy='28' r='1.15'/%3E%3Ccircle cx='194' cy='60' r='1.1'/%3E%3Ccircle cx='226' cy='144' r='1.2'/%3E%3Ccircle cx='160' cy='202' r='1.1'/%3E%3Ccircle cx='94' cy='226' r='1.15'/%3E%3Ccircle cx='34' cy='176' r='1.1'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 900'%3E%3Cdefs%3E%3CradialGradient id='g' cx='18%25' cy='18%25' r='90%25'%3E%3Cstop offset='0%25' stop-color='%23fbfdff' stop-opacity='0.95'/%3E%3Cstop offset='55%25' stop-color='%23e4ecf3' stop-opacity='0.18'/%3E%3Cstop offset='100%25' stop-color='%23e4ecf3' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='1400' height='900' fill='url(%23g)'/%3E%3Cpath d='M0 650 C 260 530, 520 790, 760 660 C 980 540, 1140 420, 1400 540 L1400 900 L0 900 Z' fill='%23ffffff' fill-opacity='0.20'/%3E%3Cpath d='M0 720 C 280 610, 560 860, 850 740 C 1070 650, 1230 580, 1400 650 L1400 900 L0 900 Z' fill='%239eb5ca' fill-opacity='0.10'/%3E%3Cpath d='M0 785 C 320 680, 620 930, 940 800 C 1150 715, 1290 665, 1400 715 L1400 900 L0 900 Z' fill='%23274766' fill-opacity='0.05'/%3E%3C/svg%3E"),
        linear-gradient(155deg, var(--portal-bg-start, #f6eee6), var(--portal-bg-end, #eddcc8));
    background-repeat: repeat, no-repeat, no-repeat;
    background-size: 260px 260px, cover, cover;
    background-position: 0 0, center bottom, center;
    filter: saturate(.9);
}

.portalweb-login-box {
    width: 500px;
    max-width: 94vw;
    margin: 0;
}

.portalweb-card {
    border-radius: var(--radius);
    border: 1px solid rgba(228, 215, 202, .95);
    box-shadow: var(--shadow);
    overflow: hidden;
    background: var(--card);
    backdrop-filter: blur(10px);
}

.portalweb-header {
    padding: 24px 22px 18px 22px;
    border-bottom: 1px solid rgba(228, 215, 202, .95);
    background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(250, 243, 236, .94));
}

.portalweb-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.portalweb-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(39, 71, 102, .08));
}

.portalweb-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: none;
    color: var(--accent);
}

.portalweb-title {
    font-family: "Source Sans 3", sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.08;
    letter-spacing: .01em;
}

.portalweb-subtitle {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
    max-width: 300px;
    line-height: 1.4;
}

.portalweb-body {
    padding: 18px 20px 20px 20px;
}

.portalweb-body .login-form {
    border: 1px solid rgba(228, 215, 202, .95);
    border-radius: 12px;
    padding: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.portalweb-input .input-group-text {
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(228, 215, 202, .95);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    color: var(--accent);
    width: 54px;
    justify-content: center;
    font-size: 18px;
}

.portalweb-input .form-control {
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(228, 215, 202, .95);
    border-left: 0;
    height: 54px;
    border-radius: 0 10px 10px 0;
    font-size: 16px;
    color: #3f342b;
}

.portalweb-input .form-control::placeholder {
    color: #8a7a6c;
}

.portalweb-input .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 .22rem rgba(91, 127, 163, .10);
    border-color: rgba(91, 127, 163, .28);
}

.portalweb-eye {
    border: 1px solid rgba(228, 215, 202, .95);
    border-left: 0;
    background: rgba(255, 255, 255, .78);
    border-radius: 0 10px 10px 0;
    height: 54px;
    width: 54px;
    color: var(--accent);
    font-size: 16px;
    padding: 0;
}

.portalweb-eye:hover {
    background: rgba(255, 255, 255, .95);
}

.portalweb-body .form-check-label {
    color: var(--muted);
    font-size: 13px;
}

.btn-graphite {
    background: linear-gradient(180deg, #5b7fa3 0%, #274766 100%) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    color: #fff !important;
    font-weight: 800;
    letter-spacing: 1.2px;
    height: 56px;
    border-radius: 12px;
    margin-top: 8px;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(39, 71, 102, .15);
    transition: transform .06s ease, filter .18s ease, box-shadow .18s ease;
}

.btn-graphite:hover {
    filter: brightness(1.03);
    box-shadow: 0 14px 28px rgba(39, 71, 102, .18);
}

.btn-graphite:active {
    transform: translateY(1px);
}

.portalweb-links {
    margin-top: 14px;
    font-size: 14px;
    color: var(--muted);
}

.portalweb-links a {
    color: var(--accent-strong);
    font-weight: 600;
    text-decoration: none;
}

.portalweb-links a:hover {
    color: var(--text);
    text-decoration: underline;
}

.portalweb-links .text-muted {
    font-size: 13px;
    opacity: .75;
}

@media (max-width: 576px) {
    body.portalweb-login {
        padding: 22px;
    }

    .portalweb-login-box {
        width: 96vw;
    }

    .portalweb-title {
        font-size: 30px;
    }

    .portalweb-subtitle {
        font-size: 12px;
    }
}
