/* =========================================================
   TDCC BANK — APPLICATION STYLES
   ========================================================= */

* {
    box-sizing: border-box;
}

:root {
    --navy: #10183d;
    --navy2: #18245b;
    --purple: #5b5ce2;
    --purple2: #7678f2;

    --ink: #182033;
    --muted: #738099;

    --line: #e7eaf2;
    --bg: #f5f7fb;
    --white: #ffffff;

    --danger: #b42318;
    --success: #18794e;
}


/* =========================================================
   BASE
   ========================================================= */

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

a {
    color: inherit;
}

.rps{
    height:100px;
}


/* =========================================================
   COMMON BANK HEADER
   ========================================================= */

.site-header {
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    position: relative;
    z-index: 100;
}

.site-header-inner {
    width: 100%;
    max-width: 1440px;
    min-height: 82px;
    margin: 0 auto;
    padding: 10px 28px;

    display: flex;
    align-items: center;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 15px;

    color: inherit;
    text-decoration: none;
}

.site-logo {
    display: block;
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.site-bank-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.2px;
}

.site-system-name {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--purple);
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* =========================================================
   AUTHENTICATION
   ========================================================= */

.auth-shell {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background:
        radial-gradient(
            circle at 10% 10%,
            #dfe2ff 0,
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #f5f7fb,
            #e9edfa
        );
}

.auth-shell.compact {
    padding: 20px;
}

.auth-card {
    width: min(980px, 100%);

    display: grid;
    grid-template-columns: 44% 56%;

    overflow: hidden;

    background: var(--white);
    border: 1px solid #e2e5ee;
    border-radius: 28px;

    box-shadow:
        0 28px 70px rgba(28, 38, 77, 0.16);
}

.auth-brand {
    padding: 58px 48px;

    background:
        linear-gradient(
            150deg,
            #10183d,
            #262e71 58%,
            #575be0
        );

    color: #ffffff;

    position: relative;
    overflow: hidden;
}

.auth-brand:after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;

    right: -150px;
    bottom: -120px;
}

.brand-mark {
    width: 54px;
    height: 54px;

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.14);

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 800;
    font-size: 20px;

    border: 1px solid rgba(255, 255, 255, 0.2);

    margin-bottom: 28px;
}

.brand-kicker,
.eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #7d84ff;
}

.auth-brand .brand-kicker {
    color: #cfd2ff;
}

.auth-brand h1 {
    font-size: 34px;
    line-height: 1.1;

    margin: 10px 0 16px;

    letter-spacing: -1px;
}

.auth-brand p {
    line-height: 1.7;
    color: #d9dcf4;
}

.auth-info {
    margin-top: 48px;

    display: grid;
    gap: 13px;

    font-size: 12px;
    color: #e4e6f8;
}

.auth-info span {
    display: inline-flex;

    width: 26px;
    height: 26px;

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.12);

    align-items: center;
    justify-content: center;

    margin-right: 9px;
}

.auth-form-panel {
    padding: 56px 58px;
}

.form-heading h2 {
    font-size: 30px;
    margin: 7px 0;
}

.form-heading p,
.muted {
    color: var(--muted);
    line-height: 1.6;
    font-size: 13px;
}


/* =========================================================
   FORM FIELDS
   ========================================================= */

.field {
    display: block;
    margin: 20px 0;
}

.field > span {
    display: block;

    font-size: 12px;
    font-weight: 750;

    margin-bottom: 8px;

    color: #3a4358;
}

.field input {
    width: 100%;
    height: 48px;

    border: 1px solid #d9deea;
    border-radius: 11px;

    padding: 0 14px;

    font: inherit;

    outline: none;

    background: #ffffff;
}

.field input:focus {
    border-color: #686bea;

    box-shadow:
        0 0 0 4px rgba(104, 107, 234, 0.12);
}

.field small {
    display: block;

    color: #8b95aa;
    font-size: 10px;

    margin-top: 7px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    border: 0;
    border-radius: 11px;

    height: 48px;

    padding: 0 18px;

    font-weight: 750;

    cursor: pointer;
}

.btn-primary {
    background:
        linear-gradient(
            135deg,
            #5154d8,
            #7074ee
        );

    color: #ffffff;

    box-shadow:
        0 10px 22px rgba(81, 84, 216, 0.22);
}

.btn-wide {
    width: 100%;
}


/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    padding: 12px 14px;

    border-radius: 10px;

    font-size: 12px;

    margin: 15px 0;

    line-height: 1.5;
}

.alert-danger {
    background: #fff1f0;
    border: 1px solid #ffd0cc;
    color: var(--danger);
}

.alert-success {
    background: #eefaf4;
    border: 1px solid #c9ecd9;
    color: var(--success);
}

.alert-warning {
    background: #fff9e7;
    border: 1px solid #f2df9e;
    color: #795d00;
}

.alert-info {
    background: #eef5ff;
    border: 1px solid #cadcf9;
    color: #1e5c9a;
}


/* =========================================================
   AUTH LINKS / SECURITY
   ========================================================= */

.form-links {
    text-align: center;

    margin: 20px 0;

    font-size: 12px;

    color: #5a61c9;
}

.form-links a {
    text-decoration: none;
}

.security-note {
    margin-top: 30px;

    padding-top: 18px;

    border-top: 1px solid var(--line);

    display: flex;
    flex-direction: column;

    gap: 5px;

    font-size: 10px;

    color: #8a94a8;

    line-height: 1.5;
}

.centered {
    text-align: center;
}


/* =========================================================
   OTP
   ========================================================= */

.otp-card {
    width: min(470px, 100%);

    background: #ffffff;

    border: 1px solid #e3e6ef;
    border-radius: 24px;

    padding: 42px;

    box-shadow:
        0 25px 65px rgba(28, 38, 77, 0.12);

    text-align: left;
}

.otp-card h1 {
    font-size: 28px;

    margin: 8px 0 10px;
}

.otp-icon {
    width: 52px;
    height: 52px;

    border-radius: 15px;

    background: #eef0ff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 23px;

    margin-bottom: 20px;
}

.otp-input {
    text-align: center;

    font-size: 22px !important;

    letter-spacing: 7px;

    font-weight: 750;
}

.inline-form {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 18px;

    margin-top: 18px;

    font-size: 12px;
}

.inline-form a {
    text-decoration: none;
    color: #657086;
}

.link-button {
    border: 0;

    background: none;

    padding: 0;

    color: #575bdc;

    font: inherit;

    cursor: pointer;
}


/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-shell {
    min-height: 100vh;
    background: #f6f7fb;
}

.topbar {
    height: 72px;

    background: #ffffff;

    border-bottom: 1px solid var(--line);

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 0 30px 0 200px;

    position: sticky;
    top: 0;

    z-index: 10;
}

.brand-small {
    display: block;

    color: #6569dc;

    font-size: 10px;
    font-weight: 850;

    letter-spacing: 1.4px;

    margin-bottom: 2px;
}

.topbar strong {
    font-size: 14px;
}

.topbar-user {
    display: flex;

    align-items: center;

    gap: 18px;

    font-size: 12px;

    color: #5f6b80;
}

.topbar-user a {
    text-decoration: none;

    color: #5b5fe0;

    font-weight: 700;
}

.dashboard-main {
    max-width: 1200px;

    margin: 0 auto;

    padding: 30px;
}


/* =========================================================
   DASHBOARD HERO
   ========================================================= */

.hero {
    padding: 32px 35px;

    border-radius: 24px;

    color: #ffffff;

    display: flex;

    align-items: center;
    justify-content: space-between;

    overflow: hidden;

    position: relative;

    box-shadow:
        0 18px 45px rgba(37, 45, 102, 0.14);
}

.hero-branch {
    background:
        linear-gradient(
            135deg,
            #151d4b,
            #4d53d6
        );
}

.hero-ho {
    background:
        linear-gradient(
            135deg,
            #102a37,
            #13766d
        );
}

.hero-section {
    background:
        linear-gradient(
            135deg,
            #3c245e,
            #7553cb
        );
}

.hero h1 {
    font-size: 27px;

    margin: 8px 0;
}

.hero p {
    margin: 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 13px;
}

.eyebrow.light {
    color: rgba(255, 255, 255, 0.72);
}

.hero-badge {
    border: 1px solid rgba(255, 255, 255, 0.22);

    background: rgba(255, 255, 255, 0.1);

    border-radius: 12px;

    padding: 10px 13px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;
}


/* =========================================================
   DASHBOARD STAT CARDS
   ========================================================= */

.stat-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 16px;

    margin: 20px 0;
}

.stat-card {
    background: #ffffff;

    border: 1px solid var(--line);

    border-radius: 18px;

    padding: 19px;

    min-height: 125px;

    box-shadow:
        0 7px 22px rgba(30, 40, 70, 0.04);
}

.stat-icon {
    display: block;

    font-size: 20px;

    margin-bottom: 14px;
}

.stat-card small {
    display: block;

    color: #8992a6;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}

.stat-card strong {
    display: block;

    margin-top: 5px;

    font-size: 18px;

    word-break: break-word;
}

.stat-card .small-value {
    font-size: 12px;
}


/* =========================================================
   DASHBOARD MODULES
   ========================================================= */

.module-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 16px;
}

.module-card {
    background: #ffffff;

    border: 1px solid var(--line);

    border-radius: 18px;

    padding: 20px;

    display: flex;

    align-items: center;

    gap: 15px;

    text-decoration: none;

    box-shadow:
        0 7px 22px rgba(30, 40, 70, 0.04);

    transition: 0.2s;
}

.module-card:hover {
    transform: translateY(-2px);

    border-color: #cdd0fa;
}

.module-card.disabled {
    opacity: 0.7;
}

.module-icon {
    width: 46px;
    height: 46px;

    border-radius: 13px;

    background: #f0f1ff;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 20px;

    flex: 0 0 46px;
}

.module-card span:nth-child(2) {
    flex: 1;
}

.module-card strong {
    display: block;

    font-size: 14px;
}

.module-card small {
    display: block;

    color: #8992a6;

    font-size: 11px;

    line-height: 1.5;

    margin-top: 4px;
}

.module-card > b {
    color: #7377e7;

    font-size: 18px;
}


/* =========================================================
   DASHBOARD NOTICE
   ========================================================= */

.notice {
    margin-top: 18px;

    padding: 18px 20px;

    border: 1px solid #e0e3ee;

    background: #ffffff;

    border-radius: 16px;

    color: #5f6b80;

    font-size: 11px;

    line-height: 1.6;
}

.notice strong {
    display: block;

    color: #293247;

    font-size: 12px;

    margin-bottom: 3px;
}

.notice p {
    margin: 0;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 800px) {

    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        display: none;
    }

    .auth-form-panel {
        padding: 38px 28px;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .module-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        padding: 0 16px;
    }

    .topbar-user span {
        display: none;
    }

    .dashboard-main {
        padding: 18px;
    }

    .hero {
        padding: 24px;

        align-items: flex-start;

        gap: 15px;
    }

    .hero h1 {
        font-size: 22px;
    }

    .site-header-inner {
        padding: 10px 18px;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .site-header-inner {
        min-height: 68px;

        padding: 8px 14px;
    }

    .site-brand {
        gap: 10px;
    }

    .site-logo {
        width: 46px;
        height: 46px;
    }

    .site-bank-name {
        font-size: 14px;
    }

    .site-system-name {
        font-size: 9px;

        margin-top: 3px;

        letter-spacing: 0.7px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .otp-card {
        padding: 28px 22px;
    }

    .hero-badge {
        display: none;
    }

    .auth-shell {
        padding: 15px;
    }
}
