body {
    background: var(--background);
    color: var(--foreground);
    font-family: Arial, Helvetica, sans-serif;
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    background: linear-gradient(135deg,
            #edf2f7 0%,
            #dbe7f5 100%);
}

.portalWrapper {
    width: 100%;
    max-width: 1180px;
    min-height: 720px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 10px 20px rgba(0, 0, 0, 0.06);
}

/* LEFT */

.portalInfo {
    width: 52%;
    background:
        linear-gradient(rgba(0, 87, 184, 0.94),
            rgba(0, 62, 130, 0.96)),
        url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?q=80&w=1600&auto=format&fit=crop");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 64px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.overlayPattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px,
            transparent 1px);
    background-size: 24px 24px;
    opacity: 0.4;
}

.infoContent {
    position: relative;
    z-index: 2;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 80px;
}

.brandLogo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: blue;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
}

.brand h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.brand span {
    display: block;
    font-size: 13px;
    opacity: 0.75;
    margin-top: 2px;
}

.hero h2 {
    font-size: 46px;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 520px;
    font-weight: 800;
}

.hero p {
    font-size: 17px;
    line-height: 1.7;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.88);
}

.features {
    margin-top: 48px;
    display: grid;
    gap: 18px;
}

.featureCard {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    padding: 18px 20px;
    border-radius: 16px;
}

.featureCard h3 {
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: 600;
}

.featureCard p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

.securityFooter {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
}

/* RIGHT */

.loginSide {
    width: 48%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.loginCard {
    width: 100%;
    max-width: 420px;

}

.loginCards {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 200px;
    margin-left: 50px;
}

.loginTitle {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #111827;
}

.loginSubtitle {
    font-size: 15px;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 34px;
}

.formGroup {
    margin-bottom: 18px;
}

.formGroup label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.formGroup input {
    width: 90%;
    height: 56px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    padding: 0 18px;
    font-size: 15px;
    background: #f9fbfd;
    transition: 0.2s ease;
}

.formGroup input:focus {
    outline: none;
    border-color: #0057b8;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 87, 184, 0.1);
}

.loginOptions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0 28px;
    font-size: 14px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
}

.remember input {
    width: 16px;
    height: 16px;
}

.link {
    color: #0057b8;
    text-decoration: none;
    font-weight: 600;
}

.link:hover {
    opacity: 0.85;
}

.loginBtn {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg,
            #0057b8,
            #0b67d1);
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: 0 12px 24px rgba(0, 87, 184, 0.22);
}

.loginBtn:hover {
    transform: translateY(-1px);
}

.secureNote {
    margin-top: 26px;
    text-align: center;
    font-size: 13px;
    line-height: 1.7;
    color: #6b7280;
}

.secureNote strong {
    color: #111827;
}

.bottomLinks {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 32px;
    font-size: 13px;
}

@media (max-width: 980px) {
    .page {
        padding: 0;
    }

    .portalWrapper {
        flex-direction: column;
        border-radius: 0;
        min-height: 100vh;
    }

    .portalInfo,
    .loginSide {
        width: 100%;
    }

    .portalInfo {
        padding: 42px 32px;
    }

    .hero h2 {
        font-size: 34px;
    }

    .loginSide {
        padding: 42px 28px 60px;
    }

    .securityFooter {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}


.spinner {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loginBtn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}


.error-box {
    display: Flex;
    justify-content: center;
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 6px;
    background: #fff1f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
    font-size: 14px;

}

.hidden {
    display: None !important;
}

.codeContainer {
    width: 100%;
    margin: 24px 0;
}

.codeInput {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    outline: none;
}

.codeInput:focus {
    border-color: #1677ff;
}

.formGroup1 input {
    width: 90%;
    height: 56px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    padding: 0 18px;
    font-size: 15px;
    background: #f9fbfd;
    transition: 0.2s ease;
    margin-top: 10px;
}
