﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /*     background: linear-gradient(135deg, #4facfe, #00f2fe); */
}

login-body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Màu nền Gradient xám như trong hình */
    background: linear-gradient(to bottom, #f0f0f0, #999999);
}

.login-container {
    background: #f5f5f5;
    width: 250px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    padding-left: 50px;
    padding-top: 50px;
}

/* --- THẺ CARD TRẮNG CHÍNH --- */
.login-card {
    background-color: white;
    width: 100%;
    border-radius: 15px; /* Bo góc tròn */
    padding: 30px 10px 20px 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
/*    margin-bottom: 20px;*/
}

/* Icon Ổ khóa to ở trên cùng */
.top-lock-icon {
    position: absolute;
    top: -25px; /* Kéo lên trên mép */
    left: 50%;
    transform: translateX(-50%);
    color: #666; /* Màu xám đậm */
    font-size: 50px;
    /*background: tran;*/ /* Nền trắng để che viền nếu cần, hoặc trong suốt */
    /* Tạo khối background giả để icon "nổi" lên như hình */
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

h2.title {
    color: #003399; /* Màu xanh dương đậm */
    margin-top: 15px;
    margin-bottom: 30px;
    font-weight: bold;
    font-size: 24px;
    text-transform: uppercase;
}

/* --- Ô INPUT --- */
.input-group {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ccc; /* Chỉ kẻ đường bên dưới */
    margin-bottom: 20px;
    padding-bottom: 5px;
}

    .input-group i {
        position: absolute;
        font-size: 18px;
        width: 30px;
        color: #000;
        text-align: left;
    }

    .input-group input {
        border: none;
        padding: 10px 5px 5px 20px;
        /*  border: 1px solid #ccc;*/
        border-radius: 8px;
        outline: none;
        width: 100%;
        text-align: center;
        font-size: 14px;
        color: #333;
        background: transparent;
    }

        .input-group input::placeholder {
            color: #bbb; /* Màu chữ mờ placeholder */
            font-weight: bold;
        }

/* --- NÚT LOGIN --- */
.btn-login {
    width: 80%;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    /* Gradient màu xanh lá cây */
    background: linear-gradient(to bottom, #90ee90, #32cd32);
    border: 1px solid #2e8b57;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px auto;
    transition: transform 0.1s;
}

    .btn-login:active {
        transform: scale(0.98);
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

/* --- VÒNG TRÒN LOADING --- */
.spinner {
    width: 40px;
    height: 40px;
    border: 5px dashed #4CAF50; /* Viền nét đứt màu xanh */
    border-radius: 50%;
    margin: 15px auto 0 auto;
    animation: spin 2s linear infinite;
    display: none; /* Ẩn mặc định */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- FOOTER BUTTONS (Thoát & Đăng ký) --- */
.footer-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
    padding: 0 10px;
}

.btn-footer {
    background-color: #f9f9f9; /* Màu nền trắng xám nhẹ */
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: #000;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    width: 45%; /* Chia đều chiều rộng */
    justify-content: center;
}

    .btn-footer:active {
        background-color: #e0e0e0;
        transform: translateY(2px);
    }

/* Màu riêng cho icon */
.icon-exit {
    color: white;
    background-color: red;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.icon-register {
    color: green;
    font-size: 18px;
}
