﻿html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.index-page {
    display: flex;
    flex-direction: column;
    background-image: url('/images/background-homepage-layout.png');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}

.login-container {
    display: flex;
    flex-direction: column;
    min-height: clamp(640px, 92vh, 900px);
    height: 100vh;
    max-width: 60%;
}

.login-box {
    height: 100%;
}

.login-image {
    background-image: url('/images/shinhan-building.jpg'); /* ảnh to bên trái */
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top;
    height: 90%;
    object-fit: scale-down;
    border-radius: 21.65px;
}

/*.login-box .col-md-6 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}*/

/* Cột form căn giữa */
.login-box .col-lg-7 {
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
}

/* Responsive */
/* Desktop vừa (1200px - 1399px) */
@media (max-width: 1399px) {
    .login-container {
        max-width: 80%;
    }
}

/* Desktop nhỏ (992px - 1199px) */
@media (max-width: 1199px) {
    .login-container {
        max-width: 90%;
    }
}

/* Nút tiếp tục khi enabled */
.btn-secondary:not(.btn-disabled) {
    background-color: #005BAC;
    border-color: #005BAC;
    color: white;
    transition: all 0.3s;
}

    .btn-secondary:not(.btn-disabled):hover {
        background-color: #004080;
    }

.btn-back {
    margin-left: 30px;
    margin-bottom: 10px;
}

    .btn-back .left-arrow {
        height: 16px;
        margin-right: 8px;
    }

    .btn-back .back-text {
        font-family: ShinhanMedium;
        font-size: 16px;
        color: #404557;
    }


.col-12 {
    padding: 0;
}

.icon-noti {
    width: 60%;
}

.title-content-popup {
    font-weight: 700;
    margin-top: 20px;
    font-size: var(--fs-38);
    color: #27BE69;
}

#vadUserName p {
    margin: 0;
    line-height: 1.4;
}

.otp-container {
    max-width: 400px;
    margin: auto;
    font-family: sans-serif;
    text-align: center;
}

.btn-verify {
    background-color: #6a5acd;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    font-size: var(--fs-16);
    cursor: pointer;
}

.login-title {
    font-family: ShinhanBold;
    font-size: var(--fs-45);
    color: #404557;
    margin-bottom: 12px;
}

.login-description-text {
    font-family: ShinhanMedium;
    font-weight: 500;
    font-size: var(--fs-20);
    color: #404557;
}

.login-section {
    margin-bottom: 50px;
}

.col-12 {
    padding: 0px;
}

.button-text {
    font-family: ShinhanBold;
    font-weight: 700;
    font-size: var(--fs-16);
}

.agree-label {
    font-family: ShinhanMedium;
    font-size: var(--fs-16);
}

    .agree-label > a {
        text-decoration: none;
        color: var(--primary-color);
        font-family: ShinhanBold;
    }

.dx-checkbox-container {
    margin-top: 5px;
}

/* Padding & min-height đặc thù trang login */
.footer {
    padding: 1rem 0;
    min-height: 160px;
}

/* Padding theo thiết kế login */
.footer-container {
    padding: 12px 11.6vw;
}

    /* Bố cục cột kiểu login: 3–4 khối cân nhau, không vỡ ở desktop */
    .footer-container > div {
        flex: 1 1 250px; /* cho phép wrap nếu thiếu chỗ */
        min-width: 250px; /* giữ độ rộng tối thiểu ở màn lớn */
    }

/* Social icon lớn hơn chút ở login */
.social-icon img {
    max-width: 24px;
    max-height: 24px;
}

.form-container {
    padding: 3rem;
}


/* Mobile/tablet: tránh vỡ layout vì min-width */
@media (max-width: 1024px) {
    .login-container {
        max-width: 100%; /* full width */
    }

    /* Ẩn ảnh nhưng vẫn giữ cột cho nút back */
    .login-image {
        display: none !important;
    }

    /* Cột form full width */
    .login-box .col-lg-7 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-top: 10px !important;
    }

    .login-box.row {
        display: block;
        margin-top: 20px;
    }

    .login-box .col-lg-7 {
        width: 100%;
    }

    .footer-container > div {
        flex: 1 1 100%;
        min-width: 0;
        align-items: start;
    }

    .login-container {
        max-width: 100%;
        height: auto; /* quan trọng: để min-height tác dụng */
        min-height: 680px;
        /* Fallback cho iOS cũ: */
        height: -webkit-fill-available;
    }

    .index-page {
        min-height: 100dvh;
        background-size: contain;
        background-position: top center;
        background-repeat: no-repeat;
        background-color: #fcfdff;
    }
}

/* Thứ tự khối trên mobile tuỳ bố cục trang login đang dùng */
@media (max-width: 576px) {
    .footer-container > .col-lg-4 {
        order: 1;
        padding: 0;
    }

    .footer-container > .col-lg-3 {
        order: 3;
        padding: 0;
    }

    .footer-container > .col-lg-5 {
        order: 2;
        padding: 0;
    }

    /* Hit area social trên mobile */
    /*.social-icon a {
        width: 36px;
        height: 36px;
    }*/

    /*.social-icon img {
        max-width: 22px;
        max-height: 22px;
    }*/

    .footer {
        text-align: center;
    }

    .form-container {
        padding: 0rem;
    }

    .index-page {
        min-height: 100dvh;
        background-size: contain;
        background-position: top center;
        background-repeat: no-repeat;
        background-color: #fcfdff;
    }

    .login-container {
        max-width: 100%;
        min-height: fit-content;
    }

    .btn-back {
        margin-left: 0px;
        margin-bottom: 0px;
    }

    .login-box.row {
        display: block;
        margin-top: 0px;
    }
}

.title-purple-modal {
    font-family: ShinhanBold;
    font-size: var(--fs-24);
    color: var(--primary-color);
}

.warning-otp-timer {
    font-family: ShinhanBold;
    color: var(--primary-color);
}