*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --text-dark: #1e293b;
    --text-mid: #475569;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --shadow: 0 20px 60px rgba(0,0,0,0.18);
}

html, body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* ══ HEADER ══ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(37, 99, 235, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    height: 66px;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
}

.header-logo img {
    height: 48px;
    object-fit: contain;
    display: block;
}

.header-logo-fallback {
    display: none;
    align-items: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

    .header-contact a {
        color: white;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: opacity 0.2s;
    }

        .header-contact a:hover {
            opacity: 0.8;
        }

.whatsapp-icon {
    width: 20px;
    height: 20px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .whatsapp-icon svg {
        width: 12px;
        height: 12px;
    }

/* ══ HERO ══ */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 80px 48px 48px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/Background.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

    .hero-bg::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
    }

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 48px;
}

.hero-text {
    flex: 1;
    color: white;
}

    .hero-text h1 {
        font-weight: 800;
        font-size: clamp(24px, 3vw, 40px);
        line-height: 1.1;
        margin-bottom: 12px;
        text-shadow: 0 2px 16px rgba(0,0,0,0.4);
    }

    .hero-text p {
        font-weight: 600;
        font-size: clamp(14px, 1.6vw, 20px);
        opacity: 0.9;
    }

/* ══ CARD LOGIN ══ */
.login-card {
    background: white;
    border-radius: 16px;
    padding: 40px 36px 44px;
    width: 100%;
    max-width: 380px;
    flex-shrink: 0;
    box-shadow: var(--shadow);
    animation: fadeUp 0.5s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-logo {
    text-align: center;
    margin-bottom: 24px;
}

    .card-logo img {
        height: 100px;
        max-width: 200px;
        object-fit: contain;
        margin: 0 auto;
    }

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 28px;
}

/* ══ FORMULÁRIO ══ */
.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: var(--text-dark);
        margin-bottom: 6px;
    }

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

    .label-row a {
        font-size: 12px;
        font-weight: 600;
        color: var(--blue);
        text-decoration: none;
    }

.input-wrap {
    position: relative;
}

    .input-wrap input {
        width: 100%;
        border: 1.5px solid var(--border);
        border-radius: 8px;
        padding: 11px 40px 11px 14px;
        font-size: 14px;
        font-family: inherit;
        background: #f8fafc;
        outline: none;
        transition: all 0.2s;
    }

        .input-wrap input:focus {
            border-color: var(--blue);
            box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
            background: white;
        }

.toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
}

.error-box {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #b91c1c;
    font-size: 13px;
}

.btn-primary {
    width: 100%;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(37,99,235,0.35);
    transition: all 0.2s;
}

    .btn-primary:hover {
        background: var(--blue-dark);
        transform: translateY(-1px);
    }

/* ══ RESPONSIVO ══ */
@media (max-width: 860px) {
    .hero-content {
        flex-direction: column;
        align-items: stretch;
    }

    .login-card {
        margin: 0 auto;
    }

    .hide-mobile {
        display: none;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0 20px;
    }

    .hero {
        padding: 80px 20px 20px;
    }

    .login-card {
        padding: 30px 20px;
    }
}
