/* ========================================
   ASSUREX Login — Facebook-style
   ======================================== */

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    background: #f0f2f5;
}

/* ---------- MAIN WRAPPER ---------- */

.main-wrapper {
    min-height: calc(100vh - 50px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.main-container {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 980px;
    width: 100%;
}

/* ---------- LEFT: Brand (desktop) ---------- */

.brand-side {
    flex: 1;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.brand-logo {
    height: 90px;
}

.brand-name {
    font-size: 2.75rem;
    font-weight: 700;
    color: #062754;
}

.brand-motto {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.35;
    color: #1c1e21;
    margin: 0 0 0.75rem;
}

.brand-text {
    font-size: 1.05rem;
    color: #606770;
    line-height: 1.5;
    margin: 0;
}

/* ---------- RIGHT: Login Card ---------- */

.login-card {
    width: 396px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1),
                0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

/* Card brand header — hidden on desktop, shown on mobile */
.card-brand {
    display: none;
}

.card-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 4px;
}

.card-logo {
    height: 64px;
}

.card-name {
    font-size: 2rem;
    font-weight: 700;
    color: #062754;
}

.card-motto {
    font-size: 0.9rem;
    color: #606770;
    margin: 0 0 20px;
}

/* Form */
.login-card .form-control {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    font-size: 17px;
    line-height: 1.2;
    color: #1d2129;
    background: #fff;
    margin-bottom: 12px;
}

.login-card .form-control::placeholder {
    color: #90949c;
}

.login-card .form-control:focus {
    outline: none;
    border-color: #015CAB;
    box-shadow: 0 0 0 2px rgba(1, 92, 171, 0.3);
}

.login-card .btn-primary {
    display: block;
    width: 100%;
    background: #015CAB;
    border: none;
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    margin-top: 4px;
    line-height: 1;
    transition: background 0.15s;
}

.login-card .btn-primary:hover {
    background: #014a8c;
}

.login-divider {
    border-bottom: 1px solid #dadde1;
    margin: 20px 0;
}

.login-support {
    font-size: 14px;
    color: #606770;
    margin: 0;
}

.login-support a {
    color: #015CAB;
    font-weight: 600;
    text-decoration: none;
}

.login-support a:hover {
    text-decoration: underline;
}

/* ---------- FOOTER ---------- */

.site-footer {
    padding: 16px 1rem;
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 12px;
    color: #8a8d91;
}

/* ---------- RESPONSIVE: <=900px ---------- */
/* Mobile: hide brand-side, show card-brand, center card, no scroll */

@media (max-width: 900px) {
    body {
        background: #3B546A;
    }

    .main-wrapper {
        min-height: 100vh;
        padding: 1rem;
    }

    .main-container {
        flex-direction: column;
        gap: 0;
        justify-content: center;
        max-width: 420px;
    }

    .brand-side {
        display: none;
    }

    .card-brand {
        display: block;
        margin-bottom: 16px;
    }

    .login-card {
        width: 100%;
        border-radius: 15px;
        padding: 2rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }

    .site-footer {
        display: none;
    }
}

/* ---------- RESPONSIVE: <=480px ---------- */

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }

    .card-logo {
        height: 52px;
    }

    .card-name {
        font-size: 1.6rem;
    }

    .login-card .form-control {
        padding: 12px 14px;
        font-size: 16px;
    }

    .login-card .btn-primary {
        padding: 12px;
        font-size: 18px;
    }
}
