﻿body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #0d0f1a;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #fff;
}

.login-box {
    position: relative;
    background: #1b1f2a;
    padding: 40px;
    width: 320px;
    border-radius: 10px;
    overflow: hidden;
}

    /* Viền neon động */
    .login-box::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: conic-gradient( #ff0055, /* Đỏ */
        #00ffff, /* Xanh */
        #ff0055, /* Đỏ */
        #00ffff /* Xanh */
        );
        animation: rotateBorder 4s linear infinite;
        z-index: 1;
    }

    .login-box::after {
        content: '';
        position: absolute;
        top: 5px;
        left: 5px;
        right: 5px;
        bottom: 5px;
        background: #1b1f2a;
        border-radius: 10px;
        z-index: 2;
    }

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.login-box h2 {
    margin: 0 0 30px;
    text-align: center;
    color: #00ffff;
    z-index: 3;
    position: relative;
}

.input-box {
    position: relative;
    margin-bottom: 20px;
    z-index: 3;
}

    .input-box input {
        width: 100%;
        padding: 10px;
        background: #11141d;
        border: 2px solid transparent;
        border-radius: 5px;
        outline: none;
        color: #fff;
        font-size: 16px;
        transition: 0.3s;
    }

        .input-box input:focus {
            border-color: #00ffff;
            box-shadow: 0 0 10px #00ffff;
        }

.links {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 20px;
    z-index: 3;
    position: relative;
}

    .links a {
        color: #00ffff;
        text-decoration: none;
        transition: 0.3s;
    }

        .links a:hover {
            text-decoration: underline;
        }

button {
    width: 100%;
    padding: 10px;
    background: #00ffff;
    color: #000;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 3;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

    button:hover:not(:disabled) {
        background: #00cccc;
        box-shadow: 0 0 10px #00ffff;
    }

    button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* Loading spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.2); /* viền mờ */
    border-top: 3px solid #ffffff; /* màu trắng để nổi bật */
    border-radius: 50%;
    width: 22px;
    height: 22px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
input[type="checkbox"] {
    transform: scale(1.5); /* Phóng to 1.5 lần */
    -webkit-transform: scale(1.5); /* Cho trình duyệt Webkit */
    -moz-transform: scale(1.5); /* Cho Firefox */
    margin-right: 8px; /* Tạo khoảng cách với text */
}
.input-box {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-box input[type="password"],
    .input-box input[type="text"] {
        width: 100%;
        padding-right: 35px; /* Chừa khoảng trống cho icon */
    }

#togglePassword {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #ccc; /* tuỳ chỉnh màu */
}