﻿:root {
    /* Brand Colors */
    --gs1-blue: #0050b5;
    --gs1-blue-2: #0068d9;
    --gs1-blue-dark: #002c6c;
    --gs1-orange: #f58220;
    /* Text Colors */
    --text-main: #08245c;
    --text-muted: #667085;
    --text-soft: #5b6b84;
    /* Surface / Border */
    --white: #ffffff;
    --bg-soft: #edf7ff;
    --border-soft: #d9e6f5;
    /* State Colors */
    --danger: #b42318;
    --danger-bg: #fff5f5;
    --danger-border: #ffd6d6;
    --warning-text: #7a3a14;
    --warning-bg: #fff8f2;
    --warning-border: #ffe1cc;
    /* Shadow */
    --shadow-soft: 0 14px 34px rgba(0, 64, 130, .10);
    --shadow-card: 0 24px 60px rgba(0, 64, 130, .13);
}


:root {
    --color-primary-blue: #002c6c;
    --color-primary-forest: #00ac4a;
    --color-primary-gold: #c4b000;
    --color-primary-grass: #7ac143;
    --color-primary-honey: #b78b20;
    --color-primary-lavender: #af96d4;
    --color-primary-lime: #c1d82f;
    --color-primary-link: #008dbd;
    --color-primary-mint: #71b790;
    --color-primary-mist: #8db9ca;
    --color-primary-olive: #9dbb68;
    --color-primary-orange: #f26334;
    --color-primary-peach: #fbb034;
    --color-primary-purple: #bd80b7;
    --color-primary-raspberry: #f05587;
    --color-primary-sky: #00b6de;
    --color-primary-slate: #89aadb;
    --color-primary-tangerine: #ff8200;
    --color-primary-teal: #22bcb9;
    --color-primary-terracotta: #d18158;
    --color-primary-silver: #888b8d;
    --color-primary-light-gray: #f4f4f4;
    --color-primary-keys: "blue" "forest" "gold" "grass" "honey" "lavender" "lime" "link" "mint" "mist" "olive" "orange" "peach" "purple" "raspberry" "sky" "slate" "tangerine" "teal" "terracotta" "silver" "light-gray";
    --color-accessible-forest-dark-1: #026b30;
    --color-accessible-forest-dark-2: #014b22;
    --color-accessible-forest-light-1: #b3eacb;
    --color-accessible-forest-light-2: #ccf1dc;
    --color-accessible-forest: #008037;
    --color-accessible-gold-dark-1: #665b0b;
    --color-accessible-gold-dark-2: #4e4608;
    --color-accessible-gold: #826f00;
    --color-accessible-grass-dark-1: #376911;
    --color-accessible-grass-dark-2: #2c530e;
    --color-accessible-grass: #417e12;
    --color-accessible-honey-dark-1: #705517;
    --color-accessible-honey-dark-2: #594312;
    --color-accessible-honey: #8d6b19;
    --color-accessible-lavender-dark-1: #6f4aa8;
    --color-accessible-lavender-dark-2: #604091;
    --color-accessible-lavender: #835cbc;
    --color-accessible-link-dark-1: #0a5e7a;
    --color-accessible-link-dark-2: #084c63;
    --color-accessible-link: #00799e;
    --color-accessible-lime-dark-1: #576111;
    --color-accessible-lime-dark-2: #3e450c;
    --color-accessible-lime: #667800;
    --color-accessible-mint-dark-1: #276b45;
    --color-accessible-mint-dark-2: #1f5637;
    --color-accessible-mint: #3f7c5a;
    --color-accessible-mist-dark-1: #356577;
    --color-accessible-mist-dark-2: #2a515f;
    --color-accessible-mist: #41778c;
    --color-accessible-olive-dark-1: #576337;
    --color-accessible-olive-dark-2: #48522e;
    --color-accessible-olive: #677642;
    --color-accessible-orange-dark-1: #a82c05;
    --color-accessible-orange-dark-2: #912305;
    --color-accessible-orange: #cd3c0d;
    --color-accessible-peach-dark-1: #855304;
    --color-accessible-peach-dark-2: #6d4403;
    --color-accessible-peach: #9d6304;
    --color-accessible-purple-dark-1: #823d80;
    --color-accessible-purple-dark-2: #6f346d;
    --color-accessible-purple: #a2539a;
    --color-accessible-raspberry-dark-1: #b32253;
    --color-accessible-raspberry-dark-2: #961c46;
    --color-accessible-raspberry: #d12b61;
    --color-accessible-sky-dark-1: #095a6b;
    --color-accessible-sky-dark-2: #074755;
    --color-accessible-sky: #007b93;
    --color-accessible-slate-dark-1: #235696;
    --color-accessible-slate-dark-2: #1c4578;
    --color-accessible-slate: #3a70bf;
    --color-accessible-tangerine-dark-1: #7a3d00;
    --color-accessible-tangerine-dark-2: #630;
    --color-accessible-tangerine-light-1: #ffdab3;
    --color-accessible-tangerine-light-2: #ffe6cc;
    --color-accessible-tangerine: #a15700;
    --color-accessible-teal-dark-1: #14615f;
    --color-accessible-teal-dark-2: #104c4b;
    --color-accessible-teal: #177c7a;
    --color-accessible-terracotta-dark-1: #854525;
    --color-accessible-terracotta-dark-2: #703a1f;
    --color-accessible-terracotta: #ab5a2f;
    --color-accessible-keys: "forest-dark-1" "forest-dark-2" "forest-light-1" "forest-light-2" "forest" "gold-dark-1" "gold-dark-2" "gold" "grass-dark-1" "grass-dark-2" "grass" "honey-dark-1" "honey-dark-2" "honey" "lavender-dark-1" "lavender-dark-2" "lavender" "link-dark-1" "link-dark-2" "link" "lime-dark-1" "lime-dark-2" "lime" "mint-dark-1" "mint-dark-2" "mint" "mist-dark-1" "mist-dark-2" "mist" "olive-dark-1" "olive-dark-2" "olive" "orange-dark-1" "orange-dark-2" "orange" "peach-dark-1" "peach-dark-2" "peach" "purple-dark-1" "purple-dark-2" "purple" "raspberry-dark-1" "raspberry-dark-2" "raspberry" "sky-dark-1" "sky-dark-2" "sky" "slate-dark-1" "slate-dark-2" "slate" "tangerine-dark-1" "tangerine-dark-2" "tangerine-light-1" "tangerine-light-2" "tangerine" "teal-dark-1" "teal-dark-2" "teal" "terracotta-dark-1" "terracotta-dark-2" "terracotta";
    --color-ui-1: #f0f5fa;
    --color-ui-2: #e5f0fc;
    --color-ui-3: #c4d7ed;
    --color-ui-4: #e5e8eb;
    --color-ui-5: #a6b0bb;
    --color-ui-6: #696d73;
    --color-ui-7: #414345;
    --color-ui-8: #262626;
    --color-ui-danger: #ba1b23;
    --color-ui-keys: "1" "2" "3" "4" "5" "6" "7" "8" "danger";
    --color-keys: primary accessible ui;
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --primary: #cd3c0d;
    --secondary: #6c757d;
    --success: #008037;
    --info: #e5f0fc;
    --warning: #ffe6cc;
    --danger: #ba1b23;
    --light: #f8f9fa;
    --dark: #343a40;
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --font-family-sans-serif: "GothamSSm",Verdana,sans-serif;
    --font-family-monospace: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace
}

* {
    box-sizing: border-box;
}

html,
body,
button,
input,
select,
textarea {
    font-family: "Noto Sans Thai", sans-serif !important;
}

body {
    color: var(--text-main);
    background: linear-gradient(135deg, #f7fbff 0%, var(--bg-soft) 100%);
}

    body.auth-body {
        margin: 0;
        color: var(--text-main);
        background: #ffffff;
    }

.auth-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.text-blue {
    color: var(--gs1-blue-dark);
}

.text-orange {
    color: var(--gs1-orange);
}

/* =============================
   Navbar
============================= */

.auth-navbar {
    height: 92px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(217, 230, 245, .85);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
}

.auth-nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-logo {
    height: 58px;
    width: auto;
    display: block;
}

.auth-menu {
    align-items: center;
    gap: 44px;
}

    .auth-menu a {
        color: var(--text-main);
        text-decoration: none;
        font-size: 15px;
        font-weight: 800;
    }

        .auth-menu a:hover {
            color: var(--gs1-blue);
        }

.auth-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-lang-btn,
.auth-outline-btn {
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: #fff;
    color: var(--text-main);
    padding: 0 16px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.auth-outline-btn {
    border-color: var(--gs1-blue);
    color: var(--gs1-blue);
}

    .auth-outline-btn:hover {
        background: var(--gs1-blue);
        color: #fff;
    }

/* =============================
   Login Hero
============================= */

.auth-login-page {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    padding: 46px 0 34px;
    background: radial-gradient(circle at 18% 12%, rgba(0, 105, 210, .15), transparent 34%), linear-gradient(90deg, #eaf6ff 0%, #f7fbff 52%, #ffffff 100%);
}

    .auth-login-page::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 110deg, rgba(234, 246, 255, .94) 0%, rgba(246, 251, 255, .72) 48%, rgba(255, 255, 255, .98) 100% );
        pointer-events: none;
    }

.auth-login-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(430px, .98fr);
    gap: 58px;
    align-items: center;
}

/* =============================
   Left Panel
============================= */

.auth-hero-panel {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    padding: 54px 42px 0 72px;
}

    .auth-hero-panel::before {
        content: "";
        position: absolute;
        inset: -46px -120px -34px -120px;
        z-index: -2;
        background: linear-gradient( 90deg, rgba(234, 246, 255, .96) 0%, rgba(234, 246, 255, .86) 28%, rgba(255, 255, 255, .34) 62%, rgba(255, 255, 255, 0) 100% ), url('../assets/images/login-wallpaper.png') no-repeat right bottom / cover;
    }

    .auth-hero-panel::after {
        content: "";
        position: absolute;
        inset: -46px -120px -34px -120px;
        z-index: -1;
        background: linear-gradient( 180deg, rgba(234, 246, 255, .56) 0%, rgba(234, 246, 255, .06) 36%, rgba(234, 246, 255, .34) 100% ), radial-gradient(circle at 14% 18%, rgba(255, 255, 255, .78), transparent 34%), radial-gradient(circle at 76% 54%, rgba(255, 255, 255, .36), transparent 38%);
        pointer-events: none;
    }

.auth-hero-content {
    position: relative;
    z-index: 5;
    max-width: 690px;
}

    .auth-hero-content h3 {
        margin: 0 0 30px;
        color: #00347a;
        font-size: clamp(28px, 2vw, 40px);
        font-weight: 700;
        line-height: 1.14;
        letter-spacing: -1.2px;
    }

    .auth-hero-content p {
        margin: 0 0 44px;
        color: #002b67;
        font-size: 24px;
        font-weight: 800;
        line-height: 1.6;
    }

.auth-feature-grid {
    position: relative;
    z-index: 6;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 42px;
    max-width: 690px;
    padding-bottom: 250px;
}

.auth-feature-item {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(0, 80, 181, .10);
}

.auth-feature-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    color: var(--gs1-blue);
    font-size: 32px;
    box-shadow: var(--shadow-soft);
    flex: 0 0 auto;
}

.auth-feature-item strong {
    display: block;
    color: #002b67;
    font-size: 18px;
    font-weight: 700;
}

.auth-feature-item span {
    display: block;
    margin-top: 3px;
    color: var(--gs1-orange);
    font-size: 15px;
    font-weight: 800;
}

.auth-mascot {
    position: absolute;
    left: 104px;
    bottom: -18px;
    /*max-width: 50%;*/
    z-index: 4;
    pointer-events: none;
    filter: drop-shadow(0 18px 32px rgba(0, 45, 108, .20));
}

/* =============================
   Form Panel
============================= */

.auth-form-panel {
    position: relative;
    z-index: 10;
}

.auth-login-card {
    width: 100%;
    min-height: 620px;
    padding: 42px 52px 36px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .90);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}

    .auth-login-card h2 {
        margin: 0 0 10px;
        color: var(--gs1-blue-dark);
        text-align: center;
        font-size: 36px;
        font-weight: 700;
        line-height: 1.25;
    }

.auth-card-subtitle {
    text-align: center;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 36px;
}

.auth-label {
    color: var(--text-main);
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-input-wrap {
    position: relative;
}

    .auth-input-wrap > i {
        position: absolute;
        left: 18px;
        top: 50%;
        z-index: 3;
        transform: translateY(-50%);
        color: #8b99aa;
        font-size: 22px;
    }

.auth-input {
    height: 56px;
    border-radius: 13px;
    border: 1px solid var(--border-soft);
    background: #fff;
    color: var(--text-main);
    font-size: 16px;
    padding-left: 54px;
    padding-right: 52px;
}

    .auth-input:focus {
        border-color: var(--gs1-blue);
        box-shadow: 0 0 0 .22rem rgba(0, 80, 181, .12);
    }

.auth-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    z-index: 4;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #8b99aa;
    display: grid;
    place-items: center;
    font-size: 22px;
}

    .auth-password-toggle:hover {
        color: var(--gs1-blue);
    }

.auth-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.form-check-input {
    border-color: #9eb3ce;
}

    .form-check-input:checked {
        background-color: var(--gs1-blue);
        border-color: var(--gs1-blue);
    }

.form-check-label {
    color: var(--text-main);
    font-size: 15px;
    font-weight: 700;
}

.auth-link {
    color: var(--gs1-blue);
    font-weight: 700;
    text-decoration: none;
}

    .auth-link:hover {
        color: var(--gs1-blue-dark);
        text-decoration: underline;
    }

.auth-login-btn {
    width: 100%;
    height: 62px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #006fe3 0%, #004eb4 100%);
    color: #fff;
    box-shadow: 0 16px 30px rgba(0, 80, 181, .28);
    font-size: 19px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .auth-login-btn:hover {
        background: linear-gradient(135deg, #005fc8 0%, #003f98 100%);
        transform: translateY(-1px);
    }

.auth-register-line {
    margin-top: 26px;
    text-align: center;
    color: #6a778b;
    font-size: 15px;
    font-weight: 600;
}

    .auth-register-line a {
        margin-left: 6px;
        color: var(--gs1-blue);
        font-weight: 700;
        text-decoration: none;
    }

        .auth-register-line a:hover {
            text-decoration: underline;
        }

.auth-support-box {
    margin-top: 34px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #dcecff;
    background: #f2f7ff;
    color: #3f5573;
    font-size: 14px;
    line-height: 1.65;
}

/* =============================
   Stats
============================= */

.auth-stats-section {
    position: relative;
    z-index: 4;
    margin-top: -24px;
}

.auth-stats-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    padding: 24px 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.auth-stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 20px;
    border-right: 1px solid #e5edf7;
}

    .auth-stat-item:last-child {
        border-right: 0;
    }

    .auth-stat-item i {
        color: var(--gs1-blue);
        font-size: 44px;
    }

    .auth-stat-item strong {
        display: block;
        color: var(--gs1-blue);
        font-size: 27px;
        font-weight: 700;
        line-height: 1;
    }

    .auth-stat-item span {
        display: block;
        margin-top: 6px;
        color: var(--text-main);
        font-size: 14px;
        font-weight: 700;
    }
/* =============================
   Services
============================= */

.auth-service-section {
    padding: 52px 0 38px;
    background: radial-gradient( circle at 50% 0, rgba(0, 92, 185, 0.05), transparent 38% ), #fff;
}

/* =============================
   Section heading
============================= */

.auth-service-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 42px;
    margin-bottom: 34px;
}

.auth-section-title {
    margin: 0;
    color: #003b7a;
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.4px;
}

.auth-title-line {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

    .auth-title-line span:first-child {
        width: 54px;
        height: 4px;
        border-radius: 999px 0 0 999px;
        background: #005cb9;
    }

    .auth-title-line span:last-child {
        width: 38px;
        height: 4px;
        border-radius: 0 999px 999px 0;
        background: #f58220;
    }

.auth-heading-dot {
    width: 190px;
    height: 30px;
    opacity: 0.55;
    background-image: radial-gradient( circle, #66b2ff 2px, transparent 2.5px );
    background-size: 13px 13px;
}

/* =============================
   Grid
============================= */

.auth-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* =============================
   Card
============================= */

.auth-service-card {
    --card-color: #005cb9;
    --card-soft: rgba(0, 92, 185, 0.09);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 490px;
    padding: 30px 28px 26px;
    overflow: hidden;
    border: 1px solid #e2eaf4;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(21, 63, 105, 0.07), 0 2px 7px rgba(21, 63, 105, 0.03);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    /* เส้นสีด้านบน */
    .auth-service-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: var(--card-color);
    }

    .auth-service-card:hover {
        transform: translateY(-7px);
        border-color: color-mix( in srgb, var(--card-color) 28%, #e2eaf4 );
        box-shadow: 0 22px 46px rgba(21, 63, 105, 0.13), 0 5px 12px rgba(21, 63, 105, 0.05);
    }

/* =============================
   Icon
============================= */

.auth-service-icon {
    width: 102px;
    height: 102px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--card-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

    .auth-service-icon i {
        display: block;
        margin: 0;
        padding: 0;
        color: var(--card-color);
        font-size: 53px;
        line-height: 1;
    }

.auth-service-card:hover .auth-service-icon {
    transform: scale(1.05);
}

/* =============================
   Text
============================= */

.auth-service-card h3 {
    min-height: 58px;
    margin: 0;
    color: var(--card-color);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.48;
    letter-spacing: -0.15px;
}

.auth-card-title-line {
    width: 48px;
    height: 2px;
    margin: 15px 0 20px;
    border-radius: 99px;
    background: var(--card-color);
    opacity: 0.75;
}

.auth-service-card p {
    flex: 1;
    margin: 0 0 24px;
    color: #445268;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.85;
}

    .auth-service-card p strong {
        color: var(--card-color);
        font-weight: 800;
    }

/* =============================
   Button
============================= */

.auth-service-card a {
    min-width: 160px;
    height: 44px;
    padding: 0 22px;
    margin-top: auto;
    border: 1.5px solid var(--card-color);
    border-radius: 11px;
    background: #fff;
    color: var(--card-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    .auth-service-card a i {
        font-size: 17px;
        line-height: 1;
        transition: transform 0.2s ease;
    }

    .auth-service-card a:hover {
        background: var(--card-color);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 8px 18px var(--card-soft);
    }

        .auth-service-card a:hover i {
            transform: translateX(3px);
        }

    /* ปุ่มหลักของ Member Portal */
    .auth-service-card a.auth-service-primary {
        background: var(--card-color);
        color: #fff;
        box-shadow: 0 8px 18px var(--card-soft);
    }

        .auth-service-card a.auth-service-primary:hover {
            filter: brightness(0.94);
            box-shadow: 0 11px 24px var(--card-soft);
        }

/* =============================
   Card themes
============================= */

.service-card-barcode {
    --card-color: #1769c2;
    --card-soft: rgba(23, 105, 194, 0.1);
}

.service-card-portal {
    --card-color: #005cb9;
    --card-soft: rgba(0, 92, 185, 0.1);
}

.service-card-catalog {
    --card-color: #f58220;
    --card-soft: rgba(245, 130, 32, 0.11);
}

.service-card-verification {
    --card-color: #00a88f;
    --card-soft: rgba(0, 168, 143, 0.1);
}

/* =============================
   Responsive
============================= */

@media (max-width: 1199.98px) {
    .auth-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-service-card {
        min-height: 460px;
    }

    .auth-heading-dot {
        width: 130px;
    }
}

@media (max-width: 767.98px) {
    .auth-service-section {
        padding: 38px 0 26px;
    }

    .auth-service-heading {
        gap: 18px;
        margin-bottom: 26px;
    }

    .auth-section-title {
        font-size: 25px;
    }

    .auth-heading-dot {
        width: 70px;
        height: 24px;
        background-size: 11px 11px;
    }

    .auth-service-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .auth-service-card {
        min-height: auto;
        padding: 28px 22px 24px;
    }

        .auth-service-card h3 {
            min-height: auto;
        }

    .auth-service-icon {
        width: 90px;
        height: 90px;
    }

        .auth-service-icon i {
            font-size: 47px;
        }
}

@media (max-width: 479.98px) {
    .auth-heading-dot {
        display: none;
    }

    .auth-service-card a {
        width: 100%;
    }
}

/* =============================
   Help
============================= */

.auth-help-section {
    padding: 10px 0 40px;
}

.auth-help-box {
    padding: 24px 28px;
    border-radius: 20px;
    border: 1px solid #dcecff;
    background: linear-gradient(135deg, #edf7ff, #f7fbff);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.auth-help-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.auth-help-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #dceeff;
    color: var(--gs1-blue);
    display: grid;
    place-items: center;
    font-size: 38px;
    flex: 0 0 auto;
}

.auth-help-left h3 {
    color: var(--gs1-blue-dark);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
}

.auth-help-left p {
    color: #40536f;
    font-weight: 700;
    margin: 0;
}

.auth-contact-btn {
    min-width: 160px;
    height: 52px;
    padding: 0 22px;
    border-radius: 13px;
    border: 1px solid var(--gs1-blue);
    background: #fff;
    color: var(--gs1-blue);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

    .auth-contact-btn:hover {
        background: var(--gs1-blue);
        color: #fff;
    }

/* =============================
   Footer
============================= */

.auth-footer {
    background: linear-gradient(135deg, #00377d 0%, #001f55 100%);
    color: #fff;
    padding: 36px 0 22px;
}

.auth-footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
    gap: 44px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.auth-footer-logo {
    width: 118px;
    margin-bottom: 14px;
}

.auth-footer-desc {
    color: rgba(255, 255, 255, .84);
    line-height: 1.7;
    margin-bottom: 18px;
}

.auth-social {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 40px;
    height: 40px;
}

    .auth-social a {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        border-radius: 50%;
        background: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 22px;
        line-height: 1;
    }

        .auth-social a i {
            display: block;
            margin: 10px;
            padding: 0;
            line-height: 1;
        }

.auth-footer-grid h6 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
}

.auth-footer-grid a,
.auth-footer-grid p {
    display: block;
    color: rgba(255, 255, 255, .86);
    text-decoration: none;
    margin-bottom: 9px;
    line-height: 1.6;
}

    .auth-footer-grid a:hover {
        color: #fff;
        text-decoration: underline;
    }

    .auth-footer-grid p i {
        margin-right: 8px;
    }

.auth-footer-bottom {
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
}

    .auth-footer-bottom a {
        color: rgba(255, 255, 255, .78);
        text-decoration: none;
    }

        .auth-footer-bottom a:hover {
            color: #fff;
        }

/* =============================
   Responsive
============================= */

@media (max-width: 1199.98px) {
    .auth-login-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .auth-hero-panel {
        min-height: 650px;
        padding: 42px 40px 0;
    }

        .auth-hero-panel::before,
        .auth-hero-panel::after {
            inset: -36px -60px 0 -60px;
        }

    .auth-feature-grid {
        padding-bottom: 260px;
    }

    .auth-mascot {
        left: 60px;
        width: 320px;
        max-width: 42vw;
    }

    .auth-login-card {
        max-width: 640px;
        min-height: auto;
        margin: 0 auto;
    }
}

@media (max-width: 991.98px) {
    .auth-navbar {
        height: 78px;
    }

    .auth-logo {
        height: 48px;
    }

    .auth-menu {
        display: none;
    }

    .auth-hero-panel {
        min-height: auto;
        padding: 36px 24px 30px;
    }

    .auth-hero-content h1 {
        text-align: center;
        font-size: 38px;
    }

    .auth-hero-content p {
        text-align: center;
        font-size: 20px;
        margin-bottom: 30px;
    }

    .auth-feature-grid {
        max-width: 580px;
        margin-left: auto;
        margin-right: auto;
        padding-bottom: 0;
    }

    .auth-mascot {
        display: none;
    }

    .auth-stats-card,
    .auth-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .auth-stat-item:nth-child(2) {
        border-right: 0;
    }

    .auth-stat-item {
        padding: 20px;
        border-bottom: 1px solid #e5edf7;
    }

        .auth-stat-item:nth-child(3),
        .auth-stat-item:nth-child(4) {
            border-bottom: 0;
        }

    .auth-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .auth-container {
        width: min(100% - 28px, 1180px);
    }

    .auth-lang-btn {
        display: none;
    }

    .auth-outline-btn {
        height: 38px;
        padding: 0 12px;
        font-size: 13px;
    }

    .auth-login-page {
        min-height: auto;
        padding: 28px 0 30px;
    }

    .auth-hero-content h1 {
        font-size: 32px;
    }

    .auth-hero-content p {
        font-size: 18px;
    }

    .auth-feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .auth-login-card {
        padding: 30px 22px;
        border-radius: 24px;
    }

        .auth-login-card h2 {
            font-size: 28px;
        }

    .auth-form-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .auth-stats-section {
        margin-top: 20px;
    }

    .auth-stats-card,
    .auth-service-grid,
    .auth-footer-grid {
        grid-template-columns: 1fr;
    }

    .auth-stat-item {
        border-right: 0;
        border-bottom: 1px solid #e5edf7 !important;
    }

        .auth-stat-item:last-child {
            border-bottom: 0 !important;
        }

    .auth-help-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-contact-btn {
        width: 100%;
    }

    .auth-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================================
   AUTH HERO FIX - CLEAN BALANCED VERSION
   วางท้ายไฟล์ auth.css
========================================================= */

.auth-login-page {
    min-height: calc(100vh - 92px);
    padding: 42px 0 42px;
    background: radial-gradient(circle at 10% 12%, rgba(0, 80, 181, .12), transparent 30%), linear-gradient(90deg, #eaf6ff 0%, #f7fbff 52%, #ffffff 100%) !important;
}

    .auth-login-page::before {
        display: none !important;
    }

.auth-login-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    gap: 54px;
    align-items: center;
}

/* ===== Left hero ===== */

.auth-hero-panel {
    position: relative;
    min-height: 700px;
    padding: 48px 42px 0 56px;
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient( 90deg, rgba(234, 246, 255, .98) 0%, rgba(234, 246, 255, .84) 36%, rgba(255, 255, 255, .46) 68%, rgba(255, 255, 255, .18) 100% ), url('../assets/images/login-wallpaper.png') no-repeat right bottom / cover;
    box-shadow: none;
}

    .auth-hero-panel::before,
    .auth-hero-panel::after {
        display: none !important;
    }

.auth-hero-content {
    position: relative;
    z-index: 5;
    max-width: 620px;
}

    .auth-hero-content h1 {
        margin: 0 0 24px;
        color: #cd3c0d;
        font-size: clamp(38px, 2vw, 50px);
        line-height: 1.18;
        font-weight: 700;
        letter-spacing: -0.8px;
    }

    .auth-hero-content p {
        margin: 0 0 34px;
        color: #002b67;
        font-size: 22px;
        line-height: 1.55;
        font-weight: 800;
    }

/* ===== Feature ===== */

.auth-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 30px;
    max-width: 620px;
    padding-bottom: 190px;
}

.auth-feature-item {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(0, 80, 181, .10);
}

.auth-feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    color: #0050b5;
    display: grid;
    place-items: center;
    font-size: 30px;
    box-shadow: 0 10px 24px rgba(0, 64, 130, .10);
    flex: 0 0 auto;
}

.auth-feature-item strong {
    display: block;
    color: #002b67;
    font-size: 17px;
    font-weight: 700;
}

.auth-feature-item span {
    display: block;
    margin-top: 2px;
    color: #f58220;
    font-size: 14px;
    font-weight: 800;
}

/* ===== Mascot ===== */

.auth-mascot {
    position: absolute;
    left: 52px;
    bottom: -18px;
    max-width: 80%;
    z-index: 4;
    pointer-events: none;
    filter: drop-shadow(0 16px 30px rgba(0, 45, 108, .18));
}

/* ===== Login card ===== */

.auth-form-panel {
    position: relative;
    z-index: 10;
}

.auth-login-card {
    width: 100%;
    min-height: auto;
    padding: 42px 46px 34px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 54px rgba(0, 64, 130, .13);
}

    .auth-login-card h2 {
        margin: 0 0 8px;
        color: #002c6c;
        text-align: center;
        font-size: 34px;
        font-weight: 700;
    }

.auth-card-subtitle {
    margin-bottom: 34px;
    text-align: center;
    color: #08245c;
    font-size: 16px;
    font-weight: 600;
}

/* ===== Input ===== */

.auth-input {
    height: 56px;
    border-radius: 13px;
}

.auth-login-btn {
    height: 60px;
    border-radius: 14px;
}

/* ===== Responsive ===== */

@media (max-width: 1199.98px) {
    .auth-login-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .auth-hero-panel {
        min-height: 560px;
    }

    .auth-login-card {
        max-width: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 991.98px) {
    .auth-login-page {
        padding: 30px 0;
    }

    .auth-hero-panel {
        min-height: auto;
        padding: 36px 28px;
    }

    .auth-hero-content h1 {
        text-align: center;
        font-size: 36px;
    }

    .auth-hero-content p {
        text-align: center;
        font-size: 19px;
        margin-bottom: 28px;
    }

    .auth-feature-grid {
        max-width: 580px;
        margin: 0 auto;
        padding-bottom: 0;
    }

    .auth-mascot {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .auth-container {
        width: min(100% - 28px, 1180px);
    }

    .auth-hero-content h1 {
        font-size: 30px;
    }

    .auth-hero-content p {
        font-size: 17px;
    }

    .auth-feature-grid {
        grid-template-columns: 1fr;
    }

    .auth-login-card {
        padding: 30px 22px;
        border-radius: 24px;
    }

        .auth-login-card h2 {
            font-size: 28px;
        }
}


.member-benefit-section {
    position: relative;
    padding: 72px 22px;
    background: radial-gradient(circle at top left, rgba(0, 80, 181, 0.08), transparent 34%), radial-gradient(circle at bottom right, rgba(242, 99, 52, 0.09), transparent 30%), linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    overflow: hidden;
}

    .member-benefit-section::before {
        content: "";
        position: absolute;
        width: 340px;
        height: 340px;
        right: -120px;
        top: 60px;
        border-radius: 50%;
        background: rgba(0, 80, 181, 0.06);
        pointer-events: none;
    }

    .member-benefit-section::after {
        content: "";
        position: absolute;
        width: 260px;
        height: 260px;
        left: -90px;
        bottom: 40px;
        border-radius: 50%;
        background: rgba(242, 99, 52, 0.07);
        pointer-events: none;
    }

.benefit-heading {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto 42px;
    text-align: center;
}

.benefit-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(242, 99, 52, 0.10);
    color: #f26334;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.benefit-heading h2 {
    margin: 0 0 14px;
    color: #f26334;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.25;
}

.benefit-heading p {
    margin: 0;
    color: #667085;
    font-size: 16px;
    line-height: 1.8;
}

.benefit-grid {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.benefit-card {
    position: relative;
    min-height: 350px;
    padding: 34px 26px 30px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(230, 237, 245, 0.95);
    box-shadow: 0 18px 45px rgba(15, 34, 64, 0.07);
    text-align: center;
    overflow: hidden;
    transition: all 0.28s ease;
}

    .benefit-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), transparent 42%), radial-gradient(circle at top right, var(--card-soft), transparent 42%);
        opacity: 0.95;
        pointer-events: none;
    }

    .benefit-card::after {
        content: "";
        position: absolute;
        width: 110px;
        height: 110px;
        right: -42px;
        bottom: -42px;
        border-radius: 50%;
        background: var(--card-soft);
        opacity: 0.7;
        transition: all 0.28s ease;
    }

    .benefit-card:hover {
        transform: translateY(-8px);
        border-color: var(--card-main);
        box-shadow: 0 26px 70px rgba(15, 34, 64, 0.13);
    }

        .benefit-card:hover::after {
            width: 140px;
            height: 140px;
            opacity: 0.95;
        }

.benefit-number {
    position: absolute;
    top: 18px;
    right: 20px;
    color: var(--card-main);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    opacity: 0.13;
}

.benefit-icon {
    position: relative;
    z-index: 1;
    width: 88px;
    height: 88px;
    margin: 0 auto 22px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--card-main), var(--card-dark));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 34px var(--card-shadow);
    transition: all 0.28s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.06) rotate(-2deg);
}

.benefit-icon i {
    font-size: 46px;
    line-height: 1;
}

.benefit-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    color: #101828;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
}

.benefit-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.85;
}

/* สีแต่ละ card */
.benefit-card-blue {
    --card-main: #0050b5;
    --card-dark: #00347a;
    --card-soft: rgba(0, 80, 181, 0.12);
    --card-shadow: rgba(0, 80, 181, 0.22);
}

.benefit-card-orange {
    --card-main: #f26334;
    --card-dark: #c7441d;
    --card-soft: rgba(242, 99, 52, 0.13);
    --card-shadow: rgba(242, 99, 52, 0.22);
}

.benefit-card-green {
    --card-main: #16a34a;
    --card-dark: #0f7a36;
    --card-soft: rgba(22, 163, 74, 0.13);
    --card-shadow: rgba(22, 163, 74, 0.20);
}

.benefit-card-purple {
    --card-main: #6941c6;
    --card-dark: #4a2c91;
    --card-soft: rgba(105, 65, 198, 0.13);
    --card-shadow: rgba(105, 65, 198, 0.20);
}

@media (max-width: 1199px) {
    .benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .benefit-card {
        min-height: 320px;
    }
}

@media (max-width: 640px) {
    .member-benefit-section {
        padding: 48px 16px;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .benefit-card {
        min-height: auto;
        padding: 30px 22px;
    }

    .benefit-icon {
        width: 76px;
        height: 76px;
        border-radius: 22px;
    }

        .benefit-icon i {
            font-size: 38px;
        }

    .benefit-card h3 {
        font-size: 19px;
    }

    .benefit-card p {
        font-size: 14px;
    }
}





.password-field {
    position: relative;
}

    .password-field .form-control-custom {
        padding-right: 48px;
    }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    cursor: pointer;
    transition: 0.2s ease;
}

    .password-toggle:hover {
        background: var(--bg-soft);
        color: var(--gs1-blue);
    }

.password-checklist {
    padding: 14px 16px;
    border-radius: 15px;
    background: #f8fbff;
    border: 1px solid var(--border-soft);
}

.pwdchecklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 4px;
}

    .pwdchecklist-item:last-child {
        margin-bottom: 0;
    }

    .pwdchecklist-item.invalid {
        color: #8a94a6;
    }

    .pwdchecklist-item.valid {
        color: #067647;
        font-weight: 700;
    }

.alert-success-custom {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 14px;
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #067647;
    font-size: 14px;
    line-height: 1.7;
}



/*userprofile*/
/* =========================================
   Auth Profile Tabs Page
   Prefix: auth-profile-
========================================= */

.auth-profile-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 16px 42px;
}

.auth-profile-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    margin-bottom: 22px;
    padding: 30px 34px;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(0, 80, 181, 0.12);
    background: radial-gradient(circle at top left, rgba(0, 80, 181, 0.20), transparent 34%), linear-gradient(135deg, #ffffff 0%, #eef6ff 54%, #eaf2ff 100%);
    box-shadow: 0 18px 50px rgba(15, 43, 92, 0.10);
}

    .auth-profile-hero::before {
        content: "";
        position: absolute;
        right: -80px;
        top: -80px;
        width: 230px;
        height: 230px;
        border-radius: 999px;
        background: rgba(0, 80, 181, 0.10);
    }

    .auth-profile-hero::after {
        content: "";
        position: absolute;
        right: 130px;
        bottom: -90px;
        width: 190px;
        height: 190px;
        border-radius: 999px;
        background: rgba(0, 166, 255, 0.10);
    }

.auth-profile-hero-content {
    position: relative;
    z-index: 1;
}

.auth-profile-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 9px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(0, 80, 181, 0.10);
    color: #0050b5;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.auth-profile-title {
    margin: 0;
    color: #082b5f;
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.8px;
}

.auth-profile-desc {
    margin: 10px 0 0;
    color: #5d7191;
    font-size: 15px;
    font-weight: 500;
}

.auth-profile-avatar {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    background: linear-gradient(135deg, #0050b5, #0094ff);
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    box-shadow: 0 18px 35px rgba(0, 80, 181, 0.28);
}

.auth-profile-shell {
    padding: 26px;
    border-radius: 30px;
    border: 1px solid rgba(15, 43, 92, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 50px rgba(15, 43, 92, 0.10);
}

/* Tabs */
.auth-profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    padding: 8px;
    border-radius: 22px;
    background: #f2f7fd;
    border: 1px solid #e0eaf6;
}

    .auth-profile-tabs .nav-item {
        flex: 1;
    }

.auth-profile-tab-btn {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 14px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #5f7694;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.18s ease;
}

    .auth-profile-tab-btn i {
        font-size: 20px;
    }

    .auth-profile-tab-btn:hover {
        color: #0050b5;
        background: rgba(255, 255, 255, 0.75);
    }

    .auth-profile-tab-btn.active {
        color: #ffffff;
        background: linear-gradient(135deg, #0050b5, #0078e8);
        box-shadow: 0 12px 26px rgba(0, 80, 181, 0.22);
    }

.auth-profile-tab-content {
    padding: 4px 2px 0;
}

/* Alert */
.auth-profile-alert {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 15px 48px 15px 16px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(15, 43, 92, 0.08);
}

.auth-profile-alert-success {
    color: #0f6848;
    background: #eafaf3;
    border: 1px solid #bfe9d6;
}

.auth-profile-alert-error {
    color: #a52b2b;
    background: #fff0f0;
    border: 1px solid #ffd1d1;
}

.auth-profile-alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.auth-profile-alert-text {
    flex: 1;
}

.auth-profile-alert-close {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    color: currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Section */
.auth-profile-section {
    width: 100%;
}

.auth-profile-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

    .auth-profile-section-head h4 {
        margin: 0;
        color: #0a2f66;
        font-size: 20px;
        font-weight: 700;
        letter-spacing: -0.3px;
    }

    .auth-profile-section-head p {
        margin: 5px 0 0;
        color: #6b7d98;
        font-size: 14px;
        font-weight: 500;
    }

.auth-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.auth-profile-field {
    min-width: 0;
}

.auth-profile-field-full {
    grid-column: 1 / -1;
}

.auth-profile-label {
    display: inline-flex;
    margin-bottom: 8px;
    color: #123869;
    font-size: 14px;
    font-weight: 800;
}

.auth-profile-input-wrap {
    position: relative;
}

    .auth-profile-input-wrap i {
        position: absolute;
        left: 16px;
        top: 50%;
        z-index: 2;
        transform: translateY(-50%);
        color: #0050b5;
        font-size: 20px;
        opacity: 0.85;
    }

.auth-profile-input {
    height: 54px;
    padding-left: 48px;
    border-radius: 16px;
    border: 1px solid #dce6f5;
    color: #16365f;
    font-size: 15px;
    font-weight: 600;
    background-color: #fbfdff;
    transition: all 0.18s ease;
}

    .auth-profile-input::placeholder {
        color: #a3b2c8;
        font-weight: 500;
    }

    .auth-profile-input:focus {
        border-color: #0050b5;
        box-shadow: 0 0 0 4px rgba(0, 80, 181, 0.12);
        background-color: #ffffff;
    }

    .auth-profile-input:disabled {
        color: #6f819b;
        background: #f2f6fb;
        cursor: not-allowed;
    }

.auth-profile-divider {
    height: 1px;
    margin: 30px 0;
    background: linear-gradient(90deg, transparent, rgba(0, 80, 181, 0.18), transparent);
}

.auth-profile-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #eaf4ff;
    color: #0050b5;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

/* Signature */
.auth-profile-signature-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.auth-profile-signature-card,
.auth-profile-notification-card {
    border-radius: 22px;
    border: 1px solid #e0e9f6;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.auth-profile-signature-card {
    padding: 18px;
}

.auth-profile-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #123869;
    font-size: 14px;
    font-weight: 700;
}

    .auth-profile-card-title i {
        color: #0050b5;
        font-size: 20px;
    }

.auth-profile-signature-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 142px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(45deg, #f4f8fd 25%, transparent 25%), linear-gradient(-45deg, #f4f8fd 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f4f8fd 75%), linear-gradient(-45deg, transparent 75%, #f4f8fd 75%);
    background-size: 18px 18px;
    background-position: 0 0, 0 9px, 9px -9px, -9px 0;
    border: 1px dashed #cbd9eb;
}

.auth-profile-signature-img {
    max-width: 100%;
    max-height: 130px;
    object-fit: contain;
}

.auth-profile-empty-signature {
    min-height: 142px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 18px;
    border: 1px dashed #cbd9eb;
    background: #f7faff;
    color: #7b8da8;
    font-size: 14px;
    font-weight: 700;
}

    .auth-profile-empty-signature i {
        color: #9aacbf;
        font-size: 34px;
    }

.auth-profile-file {
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid #dce6f5;
    color: #16365f;
    font-size: 14px;
    font-weight: 600;
    background-color: #fbfdff;
}

    .auth-profile-file:focus {
        border-color: #0050b5;
        box-shadow: 0 0 0 4px rgba(0, 80, 181, 0.12);
    }

.auth-profile-help {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    color: #43739e;
    font-size: 13px;
    font-weight: 600;
}

    .auth-profile-help i {
        color: #0050b5;
        font-size: 17px;
    }

/* Notification */
.auth-profile-notification-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
}

.auth-profile-notification-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-profile-notification-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf4ff;
    color: #0050b5;
    font-size: 24px;
}

.auth-profile-notification-title {
    color: #123869;
    font-size: 15px;
    font-weight: 700;
}

.auth-profile-notification-desc {
    margin-top: 2px;
    color: #72839b;
    font-size: 13px;
    font-weight: 500;
}

.auth-profile-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    white-space: nowrap;
}

    .auth-profile-switch .form-check-input {
        width: 48px;
        height: 26px;
        margin: 0;
        cursor: pointer;
    }

        .auth-profile-switch .form-check-input:checked {
            background-color: #0050b5;
            border-color: #0050b5;
        }

    .auth-profile-switch .form-check-label {
        color: #123869;
        font-size: 14px;
        font-weight: 800;
        cursor: pointer;
    }

/* Footer / Actions */
.auth-profile-footer,
.auth-profile-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e5edf7;
}

.auth-profile-action-row {
    justify-content: flex-end;
}

.auth-profile-updated {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6f819b;
    font-size: 13px;
    font-weight: 700;
}

    .auth-profile-updated i {
        color: #0050b5;
        font-size: 18px;
    }

.auth-profile-save-btn {
    min-width: 190px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #0050b5, #0078e8);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(0, 80, 181, 0.25);
    transition: all 0.18s ease;
}

    .auth-profile-save-btn:hover {
        transform: translateY(-1px);
        color: #ffffff;
        box-shadow: 0 18px 36px rgba(0, 80, 181, 0.32);
    }

    .auth-profile-save-btn:active {
        transform: translateY(0);
    }

.auth-profile-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f3f8ff;
    border: 1px solid #dce9f8;
    color: #4d6f95;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

    .auth-profile-note i {
        margin-top: 2px;
        color: #0050b5;
        font-size: 18px;
    }

/* Validation */
.auth-profile-page .text-danger {
    margin-top: 6px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 991.98px) {
    .auth-profile-page {
        padding: 18px 12px 32px;
    }

    .auth-profile-hero {
        padding: 24px;
        border-radius: 24px;
    }

    .auth-profile-shell {
        padding: 22px;
        border-radius: 24px;
    }

    .auth-profile-signature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .auth-profile-hero {
        align-items: flex-start;
        flex-direction: column-reverse;
    }

    .auth-profile-avatar {
        width: 72px;
        height: 72px;
        border-radius: 22px;
        font-size: 30px;
    }

    .auth-profile-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

        .auth-profile-tabs .nav-item {
            flex: 0 0 auto;
        }

    .auth-profile-tab-btn {
        min-width: 160px;
        white-space: nowrap;
    }

    .auth-profile-grid {
        grid-template-columns: 1fr;
    }

    .auth-profile-footer,
    .auth-profile-action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-profile-save-btn {
        width: 100%;
    }

    .auth-profile-notification-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-profile-switch {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 575.98px) {
    .auth-profile-hero {
        padding: 22px 18px;
    }

    .auth-profile-shell {
        padding: 18px 14px;
    }

    .auth-profile-title {
        font-size: 30px;
    }

    .auth-profile-desc {
        font-size: 14px;
    }

    .auth-profile-section-head {
        flex-direction: column;
    }
}


/* Password Toggle */
.auth-profile-password-wrap {
    position: relative;
}

.auth-profile-password-input {
    padding-right: 52px;
}

.auth-profile-input-left-icon {
    pointer-events: none;
}

.auth-profile-password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    z-index: 3;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #6f819b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.18s ease;
}

    .auth-profile-password-toggle:hover {
        background: #edf5ff;
        color: #0050b5;
    }

    .auth-profile-password-toggle:focus {
        outline: none;
        box-shadow: 0 0 0 4px rgba(0, 80, 181, 0.12);
    }

    .auth-profile-password-toggle.is-visible {
        background: #eaf4ff;
        color: #0050b5;
    }


/* Password Requirements */
.auth-profile-pwd-rules {
    margin-top: 12px;
    padding: 14px 15px;
    border-radius: 16px;
    border: 1px solid #dce9f8;
    background: linear-gradient(180deg, #f8fbff, #f2f7fd);
}

.auth-profile-pwd-rules-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #123869;
    font-size: 13px;
    font-weight: 700;
}

    .auth-profile-pwd-rules-title i {
        color: #0050b5;
        font-size: 18px;
    }

.auth-profile-pwdchecklist-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 7px;
    color: #7b8da8;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.45;
    transition: all 0.18s ease;
}

    .auth-profile-pwdchecklist-item.valid {
        color: #138a5b;
    }

    .auth-profile-pwdchecklist-item.invalid {
        color: #9a5b5b;
    }

    .auth-profile-pwdchecklist-item.valid::before {
        content: "✓";
        flex: 0 0 auto;
        width: 18px;
        height: 18px;
        margin-top: 1px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: #e8f8f0;
        color: #138a5b;
        font-size: 11px;
        font-weight: 700;
    }

    .auth-profile-pwdchecklist-item.invalid::before {
        content: "×";
        flex: 0 0 auto;
        width: 18px;
        height: 18px;
        margin-top: 1px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: #fff1f1;
        color: #b34a4a;
        font-size: 12px;
        font-weight: 700;
    }
