﻿/* ============================================================
   CCBANKING AUTHENTICATION UI
   Login + OTP + reusable authentication pages
   ============================================================ */

:root {
    --auth-ink: #0b2460;
    --auth-blue: #0788e8;
    --auth-blue-dark: #066eca;
    --auth-cyan: #40c7ff;
    --auth-line: #bfd9f5;
    --auth-muted: #667085;
    --auth-white: #ffffff;
    --auth-font: Arial;
}


/* ============================================================
   PAGE
   ============================================================ */

html,
body,
body.login-page,
body.auth-page {
    width: 100%;
    min-height: 100%;
}

    body.login-page,
    body.auth-page {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden;
        background: #eef8ff;
        font-family: var(--auth-font);
    }

        body.login-page > .row,
        body.auth-page > .row {
            min-height: 100vh;
            margin: 0 !important;
        }

            body.login-page > .row > #breadcrumb,
            body.auth-page > .row > #breadcrumb {
                float: none;
                width: 100%;
                min-height: 100vh;
                padding: 0 !important;
            }


/* ============================================================
   AUTH BACKGROUND
   ============================================================ */

.auth-experience {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    font-family: var(--auth-font);
    background-color: #062d57;
    background-image: var(--auth-background-image);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}


/* ============================================================
   TOP RIGHT DATE / TIME
   ============================================================ */

.auth-utility {
    position: fixed;
    z-index: 9999;
    top: 18px;
    right: 24px;
    display: flex;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    font-family: var(--auth-font);
    pointer-events: none;
}

    .auth-utility .datetime-item {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        white-space: nowrap;
    }

    .auth-utility .datetime-icon {
        margin-top: 2px;
        color: #17458b;
        font-size: 16px;
    }

    .auth-utility .datetime-content {
        display: flex;
        flex-direction: column;
        min-width: 118px;
        line-height: 1.15;
        text-align: left;
    }

    .auth-utility .current-date {
        color: #223a77;
        font-size: 11px;
        font-weight: 500;
        white-space: nowrap;
    }

    .auth-utility .current-time {
        display: block;
        margin-top: 3px;
        color: #0b2460;
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
    }


/* ============================================================
   MAIN TWO COLUMN LAYOUT
   ============================================================ */

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(460px, 560px);
    gap: clamp( 28px, 4vw, 60px );
    width: min( 1320px, 92vw );
    min-height: 100vh;
    margin: 0 auto;
    padding: 72px 0 20px;
    box-sizing: border-box;
    align-items: center;
}


/* ============================================================
   LEFT BRAND SECTION
   ============================================================ */

.auth-brand {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: #ffffff;
}


/* ============================================================
   CCBANKING
   ============================================================ */

.auth-brand-name {
    margin: 0;
    padding-bottom: 7px;
    font-family: var(--auth-font);
    font-size: clamp( 52px, 5.2vw, 82px );
    font-weight: 700;
    letter-spacing: -3px;
    line-height: 1.08;
    background: linear-gradient( 90deg, #ffffff, #a8e0ff );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    overflow: visible;
}


/* ============================================================
   CORE BANKING SOLUTION
   ============================================================ */

.auth-brand-caption {
    margin: 8px 0 0;
    color: #d0eaff;
    font-size: clamp( 12px, 1.1vw, 17px );
    letter-spacing: clamp( 4px, .58vw, 8px );
}


/* ============================================================
   CYAN DIVIDER
   ============================================================ */

.auth-brand-rule {
    width: 87px;
    height: 5px;
    margin: 19px 0 23px;
    border-radius: 6px;
    background: #46c8ff;
}


/* ============================================================
   BRAND HEADLINE
   ============================================================ */

.auth-brand-headline {
    margin: 0;
    color: #ffffff;
    font-family: var(--auth-font);
    font-size: clamp( 34px, 3vw, 48px );
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -1.5px;
}

    .auth-brand-headline span {
        color: var(--auth-cyan);
    }


/* ============================================================
   BRAND DESCRIPTION
   ============================================================ */

.auth-brand-copy {
    margin: 14px 0 0;
    color: #ffffff;
    font-size: clamp( 15px, 1.3vw, 20px );
    line-height: 1.4;
}


/* ============================================================
   FOUR BRAND FEATURES
   ============================================================ */

.auth-brand-values {
    display: grid;
    grid-template-columns: repeat( 4, minmax(0, 1fr) );
    margin-top: 26px;
}

.auth-brand-value {
    min-width: 0;
    padding: 0 12px;
    border-right: 1px solid rgba(112, 202, 255, .48);
    color: #ffffff;
    font-size: clamp( 10px, .95vw, 14px );
    line-height: 1.25;
    text-align: center;
}

    .auth-brand-value:first-child {
        padding-left: 0;
    }

    .auth-brand-value:last-child {
        padding-right: 0;
        border-right: 0;
    }

    .auth-brand-value .fa {
        display: block;
        margin-bottom: 7px;
        color: #d6f1ff;
        font-size: 29px;
    }


/* ============================================================
   LEFT FOOTER
   ============================================================ */

.auth-brand-footer {
    margin-top: 29px;
    color: #ffffff;
    font-size: 9px;
    letter-spacing: 4px;
    white-space: nowrap;
}

    .auth-brand-footer span {
        padding: 0 9px;
        color: #9fd9ff;
    }


/* ============================================================
   RIGHT AUTH CARD
   ============================================================ */

.auth-panel {
    position: relative;
    width: 100%;
    max-width: 560px;
    min-width: 0;
    min-height: 500px;
    justify-self: end;
    box-sizing: border-box;
    padding: 28px 38px 20px;
    overflow: hidden;
    border: 1px solid #a9d4ff;
    border-radius: 20px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 20px 50px rgba(31, 111, 182, .16);
}


    /* top accent line */

    .auth-panel::before {
        position: absolute;
        top: 0;
        left: 0;
        width: 42%;
        height: 3px;
        border-radius: 20px 0 4px;
        background: linear-gradient( 90deg, #0476ed, #50c9ff );
        content: "";
    }


/* ============================================================
   PANEL INNER
   ============================================================ */

.auth-panel-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 450px;
    margin: 0 auto;
    box-sizing: border-box;
}


/* ============================================================
   CARD TITLE
   ============================================================ */

.auth-panel-title {
    margin: 0;
    color: var(--auth-ink);
    font-family: var(--auth-font);
    font-size: 31px;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -1px;
}


/* ============================================================
   CARD SUBTITLE
   ============================================================ */

.auth-panel-subtitle {
    margin: 6px 0 28px;
    color: #29458a;
    font-family: var(--auth-font);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 3px;
}


/* ============================================================
   OTP INTRO ROW
   ============================================================ */

.otp-intro {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 24px;
}


/* ============================================================
   OTP PHONE ICON
   ============================================================ */

.otp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 16px;
    background: linear-gradient( 145deg, #e5f5ff, #d8efff );
    color: #0788e8;
    font-size: 33px;
}

    .otp-icon .fa {
        margin: 0;
    }


/* ============================================================
   OTP LABEL
   ============================================================ */

.otp-eyebrow {
    margin: 0 0 5px;
    color: #087cf0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}


/* ============================================================
   ENTER YOUR OTP
   ============================================================ */

.otp-heading {
    margin: 0 0 6px;
    color: var(--auth-ink);
    font-family: var(--auth-font);
    font-size: 27px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.5px;
}


/* ============================================================
   OTP DESCRIPTION
   ============================================================ */

.otp-description {
    margin: 0;
    color: #425a8a;
    font-size: 13px;
    line-height: 1.45;
}


/* ============================================================
   FORM
   ============================================================ */

.auth-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.auth-panel .form-group {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 14px;
    box-sizing: border-box;
}


/* ============================================================
   FORM CONTROL
   ============================================================ */

.auth-panel .form-control {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 54px;
    box-sizing: border-box;
    padding: 11px 50px 11px 50px;
    border: 1px solid var(--auth-line);
    border-radius: 9px;
    color: var(--auth-ink);
    font-family: var(--auth-font);
    font-size: 14px;
    box-shadow: none;
}

    .auth-panel .form-control:focus {
        border-color: var(--auth-blue);
        box-shadow: 0 0 0 3px rgba(8, 124, 240, .10);
    }


/* ============================================================
   OTP LOCK ICON
   ============================================================ */

.auth-panel .form-control-feedback {
    top: 0;
    right: auto;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 54px;
    color: #52638e;
    font-size: 18px;
}


/* ============================================================
   OTP INPUT
   ============================================================ */

.otp-input {
    letter-spacing: 2px;
}


/* ============================================================
   OTP ACTION BUTTONS
   ============================================================ */

.otp-actions {
    display: grid;
    grid-template-columns: 1fr 1.28fr;
    gap: 12px;
    width: 100%;
    margin-top: 4px;
}

.auth-panel .btn {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    border-radius: 9px;
    font-family: var(--auth-font);
    font-size: 14px;
    font-weight: 700;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}


/* ============================================================
   RESEND OTP
   ============================================================ */

.auth-panel .btn-secondary {
    border: 1px solid #67b7f4;
    background: #f7fcff;
    color: #0879d0;
    box-shadow: none;
}

    .auth-panel .btn-secondary:hover,
    .auth-panel .btn-secondary:focus {
        border-color: #087cf0;
        background: #ebf7ff;
        color: #0567b5;
        outline: 0;
    }


/* ============================================================
   VERIFY BUTTON
   ============================================================ */

.auth-panel .btn-primary {
    border: 0;
    background: linear-gradient( 90deg, #087bd9, #078fe9 );
    color: #ffffff;
    box-shadow: 0 8px 17px rgba(8, 120, 232, .20);
}

    .auth-panel .btn-primary:hover,
    .auth-panel .btn-primary:focus {
        border: 0;
        background: #066eca;
        color: #ffffff;
        outline: 0;
        box-shadow: 0 9px 20px rgba(8, 120, 232, .27);
    }


/* ============================================================
   ERROR
   ============================================================ */

.auth-error,
#error-area {
    min-height: 18px;
    margin-top: 8px;
    color: #d92d20 !important;
    font-family: var(--auth-font);
    font-size: 11px;
}


/* ============================================================
   OTP NOTE
   ============================================================ */

.otp-security-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    color: #53698d;
    font-size: 11px;
}

    .otp-security-note .fa {
        color: #087cf0;
        font-size: 17px;
    }


/* ============================================================
   BOTTOM SECURITY FOOTER
   ============================================================ */

.auth-panel-footer {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 10px;
    margin: auto 0 0;
    padding: 16px 0 0;
    box-sizing: border-box;
    color: #294584;
    font-family: var(--auth-font);
    font-size: 8px;
    letter-spacing: 2.5px;
    white-space: nowrap;
    background: transparent;
    border: 0;
}

    .auth-panel-footer::before,
    .auth-panel-footer::after {
        flex: 1 1 auto;
        min-width: 20px;
        height: 1px;
        background: #8394bc;
        content: "";
    }

    .auth-panel-footer span {
        color: #7183ad;
        letter-spacing: 0;
    }


/* ============================================================
   NORMAL LAPTOP
   1366 / 100% zoom
   ============================================================ */

@media screen and (min-width: 769px) and (max-width: 1400px) {

    .auth-layout {
        grid-template-columns: minmax(0, 1fr) minmax(440px, 520px);
        gap: 28px;
        width: 92vw;
    }


    .auth-panel {
        width: 100%;
        max-width: 520px;
        min-height: 455px;
        padding: 22px 32px 15px;
    }


    .auth-panel-inner {
        min-height: 418px;
    }


    .auth-panel-title {
        font-size: 29px;
    }


    .auth-panel-subtitle {
        margin: 5px 0 22px;
        font-size: 9px;
        letter-spacing: 2.5px;
    }


    .auth-brand-name {
        font-size: clamp( 50px, 5vw, 72px );
    }


    .auth-brand-caption {
        font-size: 12px;
    }


    .auth-brand-headline {
        font-size: clamp( 32px, 2.8vw, 43px );
    }


    .auth-brand-copy {
        font-size: 15px;
    }


    .auth-brand-value {
        font-size: 10px;
    }


        .auth-brand-value .fa {
            font-size: 26px;
        }


    .otp-intro {
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 15px;
        margin-bottom: 19px;
    }


    .otp-icon {
        width: 66px;
        height: 66px;
        font-size: 28px;
    }


    .otp-heading {
        font-size: 24px;
    }


    .otp-description {
        font-size: 12px;
    }


    .auth-panel .form-control,
    .auth-panel .form-control-feedback {
        height: 48px;
    }


    .auth-panel .btn {
        min-height: 44px;
        font-size: 13px;
    }
}


/* ============================================================
   SHORT LAPTOP
   ============================================================ */

@media screen and (min-width: 769px) and (max-height: 820px) {

    .auth-layout {
        padding: 58px 0 12px;
    }


    .auth-panel {
        min-height: 455px;
    }


    .auth-panel-inner {
        min-height: 418px;
    }


    .auth-brand-values {
        margin-top: 18px;
    }


    .auth-brand-footer {
        margin-top: 18px;
    }


    .auth-panel-footer {
        padding-top: 10px;
        font-size: 7px;
    }
}


/* ============================================================
   VERY SHORT DESKTOP
   ============================================================ */

@media screen and (min-width: 769px) and (max-height: 700px) {

    .auth-layout {
        padding: 48px 0 8px;
    }


    .auth-panel {
        min-height: 410px;
        padding: 15px 30px 10px;
    }


    .auth-panel-inner {
        min-height: 383px;
    }


    .auth-panel-title {
        font-size: 26px;
    }


    .auth-panel-subtitle {
        margin-bottom: 12px;
    }


    .otp-intro {
        margin-bottom: 12px;
    }


    .otp-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }


    .otp-heading {
        font-size: 20px;
    }


    .otp-description {
        font-size: 11px;
    }


    .auth-panel .form-control,
    .auth-panel .form-control-feedback {
        height: 40px;
    }


    .auth-panel .form-group {
        margin-bottom: 8px;
    }


    .auth-panel .btn {
        min-height: 39px;
    }


    .otp-security-note {
        margin-top: 7px;
        font-size: 10px;
    }


    .auth-panel-footer {
        padding-top: 7px;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media screen and (max-width: 768px) {

    .auth-experience {
        overflow-y: auto;
        background-position: 35% center;
    }


    .auth-utility {
        top: 12px;
        right: 14px;
    }


        .auth-utility .datetime-content {
            min-width: auto;
        }


        .auth-utility .datetime-icon {
            font-size: 14px;
        }


        .auth-utility .current-date {
            font-size: 9px;
        }


        .auth-utility .current-time {
            font-size: 10px;
        }


    .auth-layout {
        display: block;
        width: 100%;
        min-height: 100vh;
        padding: 64px 18px 22px;
    }


    .auth-brand {
        padding: 0 10px 27px;
    }


    .auth-brand-name {
        font-size: 48px;
    }


    .auth-brand-caption {
        margin-top: 4px;
        font-size: 11px;
    }


    .auth-brand-rule {
        width: 60px;
        height: 4px;
        margin: 13px 0 17px;
    }


    .auth-brand-headline {
        font-size: 30px;
    }


    .auth-brand-copy,
    .auth-brand-values,
    .auth-brand-footer {
        display: none;
    }


    .auth-panel {
        width: 100%;
        max-width: none;
        min-height: 460px;
        padding: 24px 22px 18px;
        border-radius: 17px;
    }


    .auth-panel-inner {
        min-height: 416px;
    }


    .auth-panel-title {
        font-size: 28px;
    }


    .auth-panel-subtitle {
        margin-bottom: 20px;
    }


    .otp-intro {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 13px;
    }


    .otp-icon {
        width: 58px;
        height: 58px;
        font-size: 24px;
    }


    .otp-heading {
        font-size: 22px;
    }


    .otp-actions {
        grid-template-columns: 1fr 1fr;
    }
}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media screen and (max-width: 430px) {

    .auth-layout {
        padding-left: 12px;
        padding-right: 12px;
    }


    .auth-panel {
        padding: 22px 18px 16px;
    }


    .otp-intro {
        grid-template-columns: 1fr;
    }


    .otp-icon {
        margin-bottom: 0;
    }


    .otp-actions {
        display: flex;
        flex-direction: column-reverse;
        gap: 8px;
    }
}
