﻿/* =====================================================
   RESET
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html,
body {
    min-height: 100%;
}


body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background: #f3f6fa;
    color: #172033;
}


/* =====================================================
   PAGE
===================================================== */

.page {
    /*    min-height: 100vh;*/
    display: flex;
    flex-direction: column;
}


/* =====================================================
   TOP GOVERNMENT BAR
===================================================== */

.top-bar {
    height: 38px;
    padding: 0 40px;
    background: #092b57;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}


.top-left {
    display: flex;
    gap: 18px;
    align-items: center;
}


.top-right {
    display: flex;
    gap: 18px;
    align-items: center;
}


.top-bar a {
    color: #fff;
    text-decoration: none;
}


    .top-bar a:hover {
        text-decoration: underline;
    }


/* =====================================================
   HEADER
===================================================== */

.header {
    background: #fff;
    /*            min-height: 88px;*/
    border-bottom: 1px solid #dce3eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    padding: 12px 40px;
}


.header-inner {
    width: 100%;
    max-width: 1180px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =====================================================
   BRAND
===================================================== */

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}


.emblem {
    width: 56px;
    height: 56px;
    border: 2px solid #d59b20;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #092b57;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}


.brand-title {
    color: #092b57;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}


.brand-subtitle {
    margin-top: 4px;
    color: #667085;
    font-size: 11px;
}


.portal-info {
    text-align: right;
}


.portal-name {
    color: #092b57;
    font-size: 14px;
    font-weight: 700;
}


.portal-description {
    margin-top: 4px;
    color: #667085;
    font-size: 11px;
}


/* =====================================================
   MAIN
===================================================== */

/*  .main {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 50px 20px;
    }*/


/* =====================================================
   OTP CARD
===================================================== */

.otp-card {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(9, 43, 87, 0.10);
    padding: 42px;
    margin: 0 auto;
}


/* =====================================================
   ICON
===================================================== */

.verification-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #edf5fb;
    border: 1px solid #d4e5f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}


/* =====================================================
   HEADING
===================================================== */

.card-heading {
    text-align: center;
}


    .card-heading h1 {
        font-size: 25px;
        color: #172033;
        margin-bottom: 8px;
    }


    .card-heading p {
        color: #667085;
        font-size: 13px;
        line-height: 1.6;
    }


/* =====================================================
   MOBILE NUMBER
===================================================== */

.mobile-info {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    color: #475467;
}


.mobile-number {
    font-weight: 700;
    color: #092b57;
    letter-spacing: 0.5px;
}


.change-number {
    border: 0;
    background: transparent;
    color: #1261a0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 6px;
}


    .change-number:hover {
        text-decoration: underline;
    }


/* =====================================================
   OTP CONTAINER
===================================================== */

.otp-section {
    margin-top: 30px;
}


.otp-label {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #344054;
    margin-bottom: 12px;
}


.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
}


/* =====================================================
   OTP INPUT
===================================================== */

.otp-input {
    display: block;
    width: 220px;
    height: 56px;
    margin: 0 auto;
    border: 1px solid #cfd7e3;
    border-radius: 8px;
    background: #fff;
    outline: none;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #092b57;
    /* 6 digit OTP ke beech spacing */
    letter-spacing: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .otp-input:focus {
        border-color: #1261a0;
        box-shadow: 0 0 0 3px rgba(18, 97, 160, 0.12);
    }

    .otp-input.error {
        border-color: #c62828;
        background: #fff8f8;
    }

@media (max-width: 500px) {
    .otp-input {
        width: 100%;
        max-width: 220px;
        height: 52px;
        font-size: 22px;
        letter-spacing: 6px;
    }
}
/* =====================================================
   ERROR
===================================================== */

.error-message {
    display: none;
    margin-top: 12px;
    color: #c62828;
    font-size: 12px;
    text-align: center;
}


    .error-message.show {
        display: block;
    }


/* =====================================================
   TIMER
===================================================== */

.timer-area {
    margin-top: 22px;
    text-align: center;
    font-size: 12px;
    color: #667085;
}


.timer {
    color: #092b57;
    font-weight: 700;
}


/* =====================================================
   RESEND
===================================================== */

.resend-area {
    margin-top: 10px;
    text-align: center;
}


.resend-button {
    border: 0;
    background: transparent;
    color: #1261a0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}


    .resend-button:disabled {
        color: #98a2b3;
        cursor: not-allowed;
    }


    .resend-button:not(:disabled):hover {
        text-decoration: underline;
    }


/* =====================================================
   VERIFY BUTTON
===================================================== */

.verify-button {
    width: 100%;
    height: 48px;
    margin-top: 28px;
    border: 0;
    border-radius: 7px;
    background: #0b4f8a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}


    .verify-button:hover {
        background: #083d6b;
    }


    .verify-button:disabled {
        background: #aeb9c6;
        cursor: not-allowed;
    }


/* =====================================================
   SECURITY NOTE
===================================================== */

.security-note {
    margin-top: 20px;
    padding: 12px 14px;
    border-left: 3px solid #d59b20;
    background: #fffaf0;
    color: #667085;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.6;
    text-align: left;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    background: #092b57;
    color: #cbd8e7;
    padding: 18px 30px;
}


.footer-inner {
    max-width: 1180px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


.footer-text {
    font-size: 11px;
    line-height: 1.5;
}


.footer-links {
    display: flex;
    gap: 18px;
}


    .footer-links a {
        color: #fff;
        font-size: 11px;
        text-decoration: none;
    }


        .footer-links a:hover {
            text-decoration: underline;
        }


/* =====================================================
   SUCCESS MESSAGE
===================================================== */

.success-message {
    display: none;
    text-align: center;
    padding: 20px 0 5px;
}


    .success-message.show {
        display: block;
    }


.success-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #eaf7ee;
    color: #18794e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}


.success-message h2 {
    color: #18794e;
    font-size: 20px;
    margin-bottom: 7px;
}


.success-message p {
    color: #667085;
    font-size: 13px;
    line-height: 1.6;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 700px) {

    .top-bar {
        padding: 0 15px;
        justify-content: center;
    }


    .top-left {
        display: none;
    }


    .header {
        padding: 12px 18px;
    }


    .portal-info {
        display: none;
    }


    .brand-title {
        font-size: 16px;
    }


    .brand-subtitle {
        font-size: 9px;
    }


    .emblem {
        width: 48px;
        height: 48px;
    }


    .main {
        padding: 25px 15px;
    }


    .otp-card {
        padding: 30px 20px;
    }


    .otp-inputs {
        gap: 7px;
    }


    .otp-input {
        width: 44px;
        height: 52px;
        font-size: 20px;
    }


    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}


@media (max-width: 380px) {

    .otp-inputs {
        gap: 5px;
    }


    .otp-input {
        width: 40px;
        height: 48px;
    }
}


/* =====================================================
   ACCESSIBILITY
===================================================== */

button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(213, 155, 32, 0.45);
    outline-offset: 2px;
}

/* =========================================
       RESET
    ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background: #f3f6fa;
    color: #172033;
    min-height: 100vh;
}


/* =========================================
       PAGE
    ========================================= */

.auth-page {
    min-height: 84vh;
    display: flex;
    flex-direction: column;
}


/* =========================================
       TOP GOVERNMENT BAR
    ========================================= */

.top-bar {
    height: 38px;
    background: #092b57;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    font-size: 13px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
}

    .top-bar a:hover {
        text-decoration: underline;
    }


/* =========================================
       HEADER
    ========================================= */

.main-header {
    background: #fff;
    border-bottom: 1px solid #dce3eb;
    min-height: 90px;
    display: flex;
    align-items: center;
    padding: 12px 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
    width: 100%;
    max-width: 1280px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================
       LOGO
    ========================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.emblem {
    width: 58px;
    height: 58px;
    border: 2px solid #d59b20;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #092b57;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    background: #fff;
}

.brand-text h1 {
    color: #092b57;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}

.brand-text p {
    color: #667085;
    font-size: 12px;
    margin-top: 3px;
}


/* =========================================
       HEADER RIGHT
    ========================================= */

.header-right {
    text-align: right;
}

.portal-title {
    color: #092b57;
    font-size: 15px;
    font-weight: 700;
}

.portal-subtitle {
    color: #667085;
    font-size: 12px;
    margin-top: 3px;
}


/* =========================================
       MAIN
    ========================================= */

.main-content {
    flex: 1;
    padding: 45px 20px 60px;
    display: flex;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: auto;
}


/* =========================================
       AUTH LAYOUT
    ========================================= */

.auth-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(9, 43, 87, 0.10);
    border: 1px solid #e0e6ed;
}


/* =========================================
       LEFT PANEL
    ========================================= */

.welcome-panel {
    background: linear-gradient( 145deg, #092b57 0%, #0c3d78 60%, #12528f 100% );
    color: #fff;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

    .welcome-panel::after {
        content: "";
        position: absolute;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        border: 45px solid rgba(255,255,255,0.05);
        right: -110px;
        bottom: -100px;
    }

.welcome-badge {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 20px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    font-size: 12px;
    margin-bottom: 25px;
}

.welcome-panel h2 {
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 15px;
}

.welcome-panel > p {
    color: #dceafa;
    font-size: 14px;
    line-height: 1.7;
    max-width: 390px;
}


/* =========================================
       FEATURES
    ========================================= */

.feature-list {
    list-style: none;
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.feature-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.feature-item strong {
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
}

.feature-item span {
    color: #c9d9eb;
    font-size: 12px;
    line-height: 1.5;
}


/* =========================================
       AUTH CARD
    ========================================= */

.auth-panel {
    padding: 40px;
}


/* =========================================
       TABS
    ========================================= */

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #dce3eb;
    margin-bottom: 30px;
}

.auth-tab {
    border: 0;
    background: transparent;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    color: #667085;
    cursor: pointer;
    position: relative;
}

    .auth-tab.active {
        color: #092b57;
    }

        .auth-tab.active::after {
            content: "";
            position: absolute;
            left: 20%;
            right: 20%;
            bottom: -1px;
            height: 3px;
            background: #d59b20;
            border-radius: 3px 3px 0 0;
        }


/* =========================================
       FORM HEADER
    ========================================= */

.form-header {
    margin-bottom: 25px;
}

    .form-header h3 {
        font-size: 24px;
        color: #172033;
        margin-bottom: 7px;
    }

    .form-header p {
        font-size: 13px;
        color: #667085;
        line-height: 1.5;
    }

.checkbox-label {
    display: flex !important;
    gap: 0 !important;
    align-items: center !important;
}

.agree-check {
    margin: 0;
    display: flex;
    align-items: center;
}

.agree-check-box {
    margin: 0;
    display: flex;
}

    .agree-check-box label {
        margin-bottom: 0px !important;
        margin-left: 5px;
    }

.form-group label
/* =========================================
       FORM
    ========================================= */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
}

.required {
    color: #c62828;
}


/* =========================================
       INPUT
    ========================================= */

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8492a6;
    font-size: 14px;
    pointer-events: none;
}

.form-control {
    width: 100%;
    height: 46px;
    border: 1px solid #cfd7e3;
    border-radius: 7px;
    padding: 0 42px;
    outline: none;
    font-size: 14px;
    color: #172033;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .form-control:focus {
        border-color: #1261a0;
        box-shadow: 0 0 0 3px rgba(18, 97, 160, 0.10);
    }

    .form-control::placeholder {
        color: #98a2b3;
    }


/* =========================================
       PASSWORD BUTTON
    ========================================= */

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #667085;
}


/* =========================================
       FORM ROW
    ========================================= */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}


/* =========================================
       CHECKBOX
    ========================================= */

.checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 4px 0 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #475467;
    cursor: pointer;
}

    .checkbox-label input {
        width: 15px;
        height: 15px;
    }

.forgot-link {
    color: #1261a0;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

    .forgot-link:hover {
        text-decoration: underline;
    }


/* =========================================
       CAPTCHA
    ========================================= */

.captcha-row {
    display: grid;
    grid-template-columns: 1fr 245px;
    gap: 17px;
    align-items: normal;
}

.captcha-box {
    height: 46px;
    border: 1px solid #cfd7e3;
    border-radius: 7px;
    background: repeating-linear-gradient( -45deg, #f3f5f7, #f3f5f7 5px, #e8ebef 5px, #e8ebef 10px );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 5px;
    color: #17375e;
    font-style: italic;
}


/* =========================================
       BUTTON
    ========================================= */

.primary-btn {
    width: 100%;
    height: 48px;
    margin-top: 20px;
    border: 0;
    border-radius: 7px;
    background: #0b4f8a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

    .primary-btn:hover {
        background: #083d6b;
    }

    .primary-btn:active {
        transform: translateY(1px);
    }


/* =========================================
       SECURITY MESSAGE
    ========================================= */

.security-note {
    margin-top: 18px;
    padding: 11px 13px;
    background: #f4f8fc;
    border-left: 3px solid #0b4f8a;
    border-radius: 4px;
    font-size: 11px;
    color: #667085;
    line-height: 1.5;
}


/* =========================================
       REGISTER FORM
    ========================================= */

#registerForm {
    display: none;
}


/* =========================================
       FOOTER
    ========================================= */

.main-footer {
    background: #092b57;
    color: #cbd8e7;
    padding: 20px 40px;
}

.footer-inner {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-text {
    font-size: 11px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 18px;
}

    .footer-links a {
        color: #fff;
        font-size: 11px;
        text-decoration: none;
    }

        .footer-links a:hover {
            text-decoration: underline;
        }


/* =========================================
       RESPONSIVE
    ========================================= */

@media (max-width: 850px) {

    .top-bar {
        padding: 0 20px;
    }

    .top-bar-left {
        display: none;
    }

    .top-bar-right {
        width: 100%;
        justify-content: center;
    }

    .main-header {
        padding: 12px 20px;
    }

    .header-right {
        display: none;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .welcome-panel {
        display: none;
    }

    .auth-panel {
        padding: 30px;
    }

    .main-content {
        padding: 25px 15px 40px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}


@media (max-width: 500px) {

    .brand-text h1 {
        font-size: 16px;
    }

    .brand-text p {
        font-size: 10px;
    }

    .emblem {
        width: 48px;
        height: 48px;
    }

    .auth-panel {
        padding: 22px 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .captcha-row {
        grid-template-columns: 1fr;
    }

    .captcha-box {
        width: 100%;
    }

    .main-footer {
        padding: 18px 15px;
    }
}


/* =========================================
       ACCESSIBILITY
    ========================================= */

button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(213, 155, 32, 0.45);
    outline-offset: 2px;
}
