/* =========================================================
   NGÂN HÀNG ĐỀ - LOGIN PAGE
   Clean / Responsive / Standalone
   Font: Arial, sans-serif
   ========================================================= */


/* =========================================================
   1. VARIABLES
   ========================================================= */

:root {
    --login-primary: #2a9d8f;
    --login-primary-hover: #2fcab8;
    --login-primary-dark: #0e6f66;
    --login-primary-deep: #0a3e38;

    --login-secondary: #264653;

    --login-mint: #70ebdd;
    --login-mint-light: #eafff8;

    --login-bg: #f5f7fb;
    --login-white: #ffffff;

    --login-text: #264653;
    --login-text-light: #718096;

    --login-border: #dfe6ea;
    --login-border-hover: #c5d3d8;

    --login-danger: #dc3545;
    --login-success: #198754;
}


/* =========================================================
   2. GLOBAL
   ========================================================= */

.login-page,
.login-page * {
    box-sizing: border-box;
}

.login-page {
    width: 100%;
    min-height: 100vh;

    margin: 0;
    padding: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at top left,
            rgba(112, 235, 221, .35),
            transparent 28%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(42, 157, 143, .12),
            transparent 30%
        ),
        var(--login-bg);

    color: var(--login-text);

    font-family: Arial, sans-serif;
}


/*
   Font Awesome icons must keep their own font.
   This prevents icons from disappearing when the
   entire Login page uses Arial.
*/

.login-page .fas,
.login-page .far {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.login-page .fab {
    font-family: "Font Awesome 5 Brands";
    font-weight: 400;
}

.login-page a {
    text-decoration: none;
}


/* =========================================================
   3. MAIN CONTAINER
   ========================================================= */

.login-container {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(420px, .95fr)
        minmax(480px, 1.05fr);

    width: 100%;
    max-width: 1180px;
    min-height: 700px;

    overflow: hidden;

    background: var(--login-white);

    border-radius: 28px;

    box-shadow:
        0 30px 70px rgba(38, 70, 83, .14),
        0 10px 30px rgba(42, 157, 143, .08);
}


/* =========================================================
   4. LEFT BRAND PANEL
   ========================================================= */

.login-brand-panel {
    position: relative;

    overflow: hidden;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(112, 235, 221, .18),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 85%,
            rgba(112, 235, 221, .12),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #264653 0%,
            #1d5961 48%,
            #2a9d8f 100%
        );

    color: #ffffff;
}

.login-brand-content {
    position: relative;
    z-index: 5;

    width: 100%;

    padding: 65px 55px;
}


/* =========================================================
   5. LOGO
   ========================================================= */

.login-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 28px;
}

.login-logo-image {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}




/* =========================================================
   6. BRAND HEADING
   ========================================================= */

.login-brand-heading {
    max-width: 440px;
}

.login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 18px;

    color: var(--login-mint);

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 2px;
}

.login-eyebrow::before {
    content: "";

    width: 24px;
    height: 2px;

    background: var(--login-mint);

    border-radius: 2px;
}

.login-brand-heading h1 {
    margin: 0;

    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 38px;
    font-weight: 700;

    line-height: 1.18;
    letter-spacing: -1px;
}

.login-brand-heading p {
    max-width: 410px;

    margin: 24px 0 0;

    color: rgba(255, 255, 255, .82);

    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
   7. BENEFITS / ADVERTISEMENT
   ========================================================= */

.login-benefits {
    display: flex;
    flex-direction: column;

    gap: 21px;

    margin-top: 46px;
}

.login-benefit {
    display: flex;
    align-items: center;

    gap: 15px;
}

.login-benefit-icon {
    flex: 0 0 auto;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .15);

    color: var(--login-mint);

    font-size: 17px;
}

.login-benefit strong {
    display: block;

    margin-bottom: 4px;

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
}

.login-benefit span {
    display: block;

    color: rgba(255, 255, 255, .72);

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   8. DECORATIVE CIRCLES
   ========================================================= */

.login-decoration {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.login-decoration-1 {
    width: 320px;
    height: 320px;

    top: -170px;
    right: -150px;

    border: 1px solid rgba(255, 255, 255, .12);
}

.login-decoration-2 {
    width: 230px;
    height: 230px;

    bottom: -130px;
    left: -100px;

    background: rgba(112, 235, 221, .07);
}

.login-decoration-3 {
    width: 90px;
    height: 90px;

    right: 55px;
    bottom: 65px;

    background: rgba(112, 235, 221, .08);

    border: 1px solid rgba(255, 255, 255, .08);
}


/* =========================================================
   9. RIGHT FORM PANEL
   ========================================================= */

.login-form-panel {
    display: flex;

    align-items: center;
    justify-content: center;

    background: #ffffff;
}

.login-form-wrapper {
    width: 100%;
    max-width: 430px;

    padding: 60px 35px;
}


/* =========================================================
   10. MOBILE LOGO
   ========================================================= */

.login-mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 28px;
}

.login-mobile-logo-image {
    display: inline-block;
    width: 190px;
    max-width: 90%;
    height: auto;
}

/* =========================================================
   11. FORM HEADER
   ========================================================= */

.login-form-header {
    margin-bottom: 32px;
}

.login-form-header h2 {
    margin: 0;
    color: var(--login-secondary);
    font-family: Arial, sans-serif;
    font-size: 37px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.5px;
    text-align: center;
}

.login-form-header p {
    margin: 10px 0 0;
    color: var(--login-text-light);
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

.login-form-header span {
    text-align: center;
}



/* =========================================================
   12. ALERT
   ========================================================= */

.login-alert {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 20px;
    padding: 12px 14px;

    border-radius: 10px;

    font-size: 14px;
}

.login-alert-error {
    color: #842029;

    background: #f8d7da;
    border: 1px solid #f5c2c7;
}

.login-alert-success {
    color: #0f5132;

    background: #d1e7dd;
    border: 1px solid #badbcc;
}


/* =========================================================
   13. FORM
   ========================================================= */

.login-form {
    width: 100%;
}

.login-field {
    width: 100%;

    margin-bottom: 18px;
}

.login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 8px;
}

.login-form-label,
.login-label-row label {
    display: block;

    margin: 0;

    color: var(--login-secondary);

    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;

    line-height: 1.4;
}

.login-forgot {
    color: var(--login-primary);

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;

    transition: color .2s ease;
}

.login-forgot:hover {
    color: var(--login-secondary);
}


/* =========================================================
   14. INPUT
   ========================================================= */

.login-input-wrapper {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    height: 52px;

    background: #ffffff;

    border: 1px solid var(--login-border);
    border-radius: 11px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.login-input-wrapper:hover {
    border-color: var(--login-border-hover);
}

.login-input-wrapper:focus-within {
    border-color: var(--login-primary);

    box-shadow:
        0 0 0 3px rgba(42, 157, 143, .10);
}


/* Input icon */

.login-input-icon {
    position: absolute;

    top: 50%;
    left: 17px;

    width: auto;
    height: auto;

    margin: 0;

    transform: translateY(-50%);

    color: #8b9aa3;

    font-size: 15px;

    pointer-events: none;

    z-index: 2;
}

.login-input-wrapper:focus-within .login-input-icon {
    color: var(--login-primary);
}


/* Actual input */

.login-input {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;

    padding: 0 48px 0 50px;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--login-secondary);

    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;

    line-height: 1.4;

    box-shadow: none;

    appearance: none;
}

.login-input:focus {
    border: 0;
    outline: 0;
    box-shadow: none;
}


/* Placeholder */

.login-input::placeholder {
    color: #8f9ca4;

    opacity: 1;

    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.login-input::-webkit-input-placeholder {
    color: #8f9ca4;
    opacity: 1;
}

.login-input::-moz-placeholder {
    color: #8f9ca4;
    opacity: 1;
}

.login-input:-ms-input-placeholder {
    color: #8f9ca4;
    opacity: 1;
}


/* =========================================================
   15. PASSWORD TOGGLE
   ========================================================= */

.login-password-toggle {
    position: absolute;

    top: 50%;
    right: 10px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    transform: translateY(-50%);

    border: 0;
    background: transparent;

    color: #8b9aa3;

    cursor: pointer;
}

.login-password-toggle:hover {
    color: var(--login-primary);
}

.login-password-toggle:focus {
    outline: none;
}


/* =========================================================
   16. ERROR MESSAGE
   ========================================================= */

.login-field-error {
    min-height: 17px;
    padding-top: 4px;
}

.login-field-error .text-danger {
    display: block;
    color: var(--login-danger);
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
}


.login-messages {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 16px;
}

.login-messages > div {
    width: fit-content;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
}

.login-messages p {
    font-size: 16px;
    margin-bottom: 0px;
}

/* =========================================================
   17. LOGIN BUTTON
   ========================================================= */

.login-submit {
    position: relative;
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #2a9d8f 0%,
            #218c81 100%
        );

    box-shadow:
        0 8px 20px rgba(42, 157, 143, .20);
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.login-submit:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(
            135deg,
            #2fcab8 0%,
            #2a9d8f 100%
        );

    box-shadow:
        0 12px 28px rgba(42, 157, 143, .28);
}

.login-submit:active {
    transform: translateY(0);
}

.login-submit:focus {
    outline: none;

    box-shadow:
        0 0 0 3px rgba(42, 157, 143, .15),
        0 8px 20px rgba(42, 157, 143, .20);
}

.login-submit .message_sending {
    width: 24px;
    height: 24px;
}


/* =========================================================
   18. REGISTER
   ========================================================= */

.login-register {
    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 5px;

    margin-top: 20px;

    color: #718096;

    font-size: 14px;
    line-height: 1.5;
}

.login-register a {
    color: var(--login-primary);

    font-size: 14px;
    font-weight: 700;

    transition: color .2s ease;
}

.login-register a:hover {
    color: var(--login-primary-dark);

    text-decoration: underline;
}


/* =========================================================
   19. DIVIDER - "HOẶC"
   ========================================================= */

.login-divider {
    display: flex;
    align-items: center;

    gap: 15px;

    margin: 25px 0;

    color: #8b969d;

    font-size: 13px;
    font-weight: 600;

    text-align: center;
}

.login-divider::before,
.login-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: #e8edef;
}


/* =========================================================
   20. HOME BUTTON
   ========================================================= */

/*
   Login button = full width.
   Home button = intentionally shorter and centered.
*/

.login-home-button {
    width: 78%;
    height: 46px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    color: var(--login-secondary);

    background: #ffffff;

    border: 1px solid var(--login-border);
    border-radius: 11px;

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.login-home-button i {
    color: var(--login-primary);
}

.login-home-button:hover {
    color: var(--login-primary);

    background: var(--login-mint-light);

    border-color: var(--login-primary);

    transform: translateY(-1px);
}


/* =========================================================
   21. FOOTER
   ========================================================= */

.login-footer-text {
    margin-top: 27px;

    color: #9aa6ad;

    font-family: Arial, sans-serif;
    font-size: 13px;

    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   22. MESSAGE BOXES
   ========================================================= */

.center-display {
    width: 100%;

    margin-bottom: 15px;

    text-align: center;
}

.success_messages,
.error_messages,
.throttler {
    padding: 10px 14px;

    border-radius: 8px;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   23. TABLET
   ========================================================= */

@media screen and (max-width: 991px) {

    .login-page {
        padding: 25px;
    }

    .login-container {
        grid-template-columns:
            minmax(340px, .9fr)
            minmax(400px, 1.1fr);

        min-height: 650px;
    }

    .login-brand-content {
        padding: 50px 40px;
    }

    .login-logo {
        margin-bottom: 50px;
    }

    .login-logo-image {
        width: 180px;
    }

    .login-brand-heading h1 {
        font-size: 30px;
    }

    .login-brand-heading p {
        font-size: 17px;
    }

    .login-form-wrapper {
        padding: 50px 35px;
    }
}


/* =========================================================
   24. MOBILE
   ========================================================= */

@media screen and (max-width: 767px) {

    .login-page {
        min-height: 100vh;

        padding: 0;

        align-items: stretch;
    }

    .login-container {
        display: block;

        width: 100%;
        max-width: none;

        min-height: 100vh;

        border-radius: 0;

        box-shadow: none;
    }


    /*
       Desktop left panel is hidden.
       Its logo is shown separately above
       the mobile form.
    */

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        display: flex;

        width: 100%;
        min-height: 100vh;

        padding: 30px 22px 28px;

        align-items: flex-start;
        justify-content: center;
    }

    .login-form-wrapper {
        width: 100%;
        max-width: 500px;

        padding: 0;

        margin: 0 auto;
    }


    /* Mobile logo */

    .login-mobile-logo {
        display: block;

        align-items: center;
        justify-content: center;

        width: 100%;

        margin: 0 0 32px;
    }

    .login-mobile-logo img {
        display: inline-block;
        width: 190px;
        max-width: 75vw;
        height: auto;
    }


    /* Form */

    .login-form-header {
        margin-bottom: 27px;
    }

    .login-form-header h2 {
        font-size: 32px;
        color:#264653;
    }

    .login-form-header p {
        font-size: 16px;
    }

    .login-form-label,
    .login-label-row label {
        font-size: 15px;
    }

    .login-forgot {
        font-size: 13px;
    }


    /* Input */

    .login-input-wrapper {
        height: 50px;

        border-radius: 10px;
    }

    .login-input {
        padding-left: 49px;
        padding-right: 45px;

        font-size: 16px;
    }

    .login-input::placeholder {
        font-size: 16px;
    }


    /* Button */

    .login-submit {
        height: 50px;

        font-size: 16px;
    }

    .login-register {
        font-size: 14px;
    }

    .login-divider {
        font-size: 13px;
    }

    .login-home-button {
        width: 78%;
    }

    .login-footer-text {
        font-size: 13px;
    }
}


/* =========================================================
   25. SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 420px) {

    .login-form-panel {
        padding: 25px 18px;
    }

    .login-mobile-logo {
        margin-bottom: 28px;
    }

    .login-mobile-logo img {
        width: 175px;
    }

    .login-form-header h2 {
        font-size: 30px;
    }

    .login-form-header p {
        font-size: 15px;
    }

    .login-label-row {
        gap: 8px;
    }

    .login-form-label,
    .login-label-row label {
        font-size: 14px;
    }

    .login-forgot {
        font-size: 12px;
    }

    .login-input-wrapper {
        height: 49px;
    }

    .login-input {
        padding-left: 48px;
        padding-right: 43px;

        font-size: 15.5px;
    }

    .login-input::placeholder {
        font-size: 15.5px;
    }

    .login-submit {
        height: 49px;

        font-size: 15px;
    }

    .login-home-button {
        width: 85%;
    }

    .login-footer-text {
        font-size: 13px;
    }
}


/* =========================================================
   26. VERY SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 320px) {

    .login-form-panel {
        padding-left: 15px;
        padding-right: 15px;
    }

    .login-mobile-logo img {
        width: 160px;
    }

    .login-form-header h2 {
        font-size: 28px;
    }

    .login-form-header p {
        font-size: 14px;
    }

    .login-field {
        margin-bottom: 16px;
    }

    .login-input {
        font-size: 15px;
    }

    .login-input::placeholder {
        font-size: 15px;
    }

    .login-home-button {
        width: 90%;
    }
}


.info-blue {
    color: #0048ff;
}

.hide {
    display: none;
}






