﻿/* ===== LOGIN PAGE ===== */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f9fafb, #eef2ff);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* WRAPPER */
.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

/* HEADER */
.login-icon {
    font-size: 56px;
    color: #6366f1;
}

.login-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 16px;
    color: #6b7280;
}

/* CARD */
.login-card {
    border-radius: 14px;
    border: none;
}

    .login-card .input-group-text {
        background: #f9fafb;
        border-color: #e5e7eb;
    }

    .login-card .form-control {
        height: 56px;
        font-size: 16px;
        padding: 10px 12px;
    }

        .login-card .form-control:focus {
            box-shadow: none;
            border-color: #6366f1;
        }

/* TOGGLE PASSWORD */
.toggle-password {
    cursor: pointer;
}

/* BUTTON */
.login-btn {
    padding: 12px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border: none;
    color: #fff;
    transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

/* FOOTER */
.login-footer {
    font-size: 12px;
}

/*DÀNH CHO ĐIỆN THOẠI*/
@media (max-width: 576px) {

    .login-wrapper {
        max-width: 100%;
        padding: 20px;
    }

    .login-card {
        padding: 26px !important;
        border-radius: 16px;
    }

        .login-card .form-control {
            height: 54px;
            font-size: 16px;
        }

        .login-card .input-group-text {
            font-size: 20px; /* icon to */
            padding: 0 16px;
        }

    .login-btn {
        height: 54px;
        font-size: 17px;
        border-radius: 14px;
    }

    /* Header to hơn */
    .login-icon {
        font-size: 56px;
    }

    .login-title {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 15px;
    }
}



/* ===== Overlay ===== */
.help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh; /* dùng dvh thay vh cho mobile mới */
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999; /* tăng cao hơn */
}

/* ===== Popup 90% màn hình ===== */
.help-popup {
    background: #fff;
    width: 95%;
    height: 92dvh;
    border-radius: 16px;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}

/* ===== Nút đóng ===== */
.help-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 26px;
    border: none;
    background: none;
    cursor: pointer;
    color: #999;
    transition: .2s;
}

    .help-close:hover {
        color: #000;
        transform: rotate(90deg);
    }

/* ===== Title ===== */
.help-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* ===== Section sát nhau hơn ===== */
.help-section {
    border-bottom: 1px solid #f0f0f0;
    padding: 6px 0; /* giảm khoảng cách */
}

/* Header nhìn modern hơn */
.help-header {
    padding: 10px 12px; /* giảm padding */
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: .15s;
}

    .help-header:hover {
        background: #f5f7fa;
    }

/* Nội dung */
.help-body {
    padding: 6px 12px 12px 12px;
    display: none;
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes zoomIn {
    from {
        transform: scale(.97);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}
/* Mobile nhỏ hơn nữa */
@media (max-width: 576px) {
    .help-popup {
        width: 100%;
        height: 100dvh;
        border-radius: 0;
        padding: 16px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}