@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: radial-gradient(circle at 20% 30%, #071330, #03091e);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* Glow animation background */
.glow {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,255,200,0.3), transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.glow:nth-child(1) {
    width: 220px;
    height: 220px;
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.glow:nth-child(2) {
    width: 260px;
    height: 260px;
    bottom: 15%;
    right: 25%;
    animation-delay: 2s;
}

.glow:nth-child(3) {
    width: 180px;
    height: 180px;
    top: 60%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(-20px); opacity: 1; }
}

/* Container */
.container {
    position: relative;
    z-index: 10;
    width: 780px; /* 🔹 Giảm từ 900px xuống 780px */
    background: rgba(11, 19, 55, 0.85);
    border-radius: 20px;
    padding: 35px 40px; /* 🔹 Giảm padding */
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    animation: fadeIn 1.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logo */
.logo {
    font-size: 38px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff;
}

.logo span {
    color: #ff0077;
    text-shadow: 0 0 20px #ff0077;
}

.subtitle {
    text-align: center;
    color: #aaa;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Form layout */
form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 25px; /* 🔹 Giảm khoảng cách */
}

.input-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #00ffff;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.input-group input,
.input-group select {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0,255,255,0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0,255,255,0.4);
}

/* Error text */
.error-text {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 3px;
    height: 14px;
}

/* Error above form */
.error {
    background: rgba(255,0,0,0.1);
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Button */
.btn-container {
    text-align: center;
    margin-top: 25px;
}

.btn-container button {
    background: linear-gradient(90deg, #00ffff, #0066ff);
    border: none;
    padding: 12px 50px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0,255,255,0.3);
    transition: all 0.3s ease;
}

.btn-container button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0,255,255,0.5);
}

/* Footer */
.footer-links {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: #ccc;
}

.footer-links a {
    color: #ff0077;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    text-shadow: 0 0 10px #ff0077;
}

/* Responsive */
@media (max-width: 850px) {
    .container {
        width: 95%;
        padding: 25px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .btn-container button {
        width: 100%;
    }
}
.input-group select {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.input-group select:invalid {
    color: #aaa;
}

.input-group select option {
    color: #000;
    background: #fff;
}

