body {
    font-family: Arial, sans-serif;
    background-image: url('https://i.postimg.cc/0yZsTQcy/matteblack.png');
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    animation: slideIn 1s ease-in-out;
    transition: margin-bottom 0.3s ease-in-out;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

h2 {
    font-size: 32px;
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    margin: 4px 0 0 0;          /* almost no extra space under REGISTER */
    text-align: center;
    animation: fadeIn 3s ease-in-out;
    letter-spacing: 2px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: white;
    animation: fadeIn 2s ease-in-out;
}

input[type="text"],
input[type="password"] {
    width: calc(100% - 24px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    animation: fadeIn 2.5s ease-in-out;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 16px; /* prevents iOS auto-zoom on focus */
}

input[type="submit"] {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 30px;
    animation: fadeIn 2s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

#submit-btn {
    background-color: transparent;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    transition: background-color 0.3s, transform 0.3s;
}

#submit-btn:hover {
    background-color: crimson;
    animation: pulse 1s infinite; /* Apply the Pulse Animation on hover */
}

#close-button {
    background-color: crimson;
    color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    transition: background-color 0.3s, transform 0.3s;
}

#close-button:hover {
    background-color: #C41E3A;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

#terms-content h3 {
    font-size: 21px;
}

#terms-content strong {
    display: block;
    margin-bottom: -11px;
}

.agreement-label {
    display: flex;
    font-size: 14px;
    color: white;
    margin-bottom: 10px;
    margin-top: 8px;
    animation: fadeIn 2.5s ease-in-out;
}

.agreement-label a {
    text-decoration: underline;
    color: white;
}

.agreement-label label {
    margin: 0;
}

.agreement-label input[type="checkbox"] {
    margin: 0;
    margin-right: 5px;
    margin-top: -1px;
    cursor: pointer;
    animation: fadeIn 2s ease-in-out;
}

.password-container {
    position: relative;
}

.eye-icon {
    position: absolute;
    top: 38%;
    right: 15px;
    transform: translate(0, -50%);
    cursor: pointer;
    padding: 11px;
    background-image: url('https://i.postimg.cc/jd2MK1qk/eye.png');
    animation: fadeIn 2s ease-in-out;
    background-size: cover;
}

.eye-icon.open {
    background-image: url('https://i.postimg.cc/ZKpZFCLc/eye-red.png');
}

/* Style for input fields on focus */
input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: 0 0 15px #719ECE;
}

/* Mobile-only Adjustments: pull the form higher (closer to top) */
@media screen and (max-width: 800px) {
    body {
        align-items: flex-start;
        padding-top: 40px;
    }

    .container {
        margin-top: 40px;
        animation: slideIn 1s ease-in-out; /* keep the animation */
    }
}

/* ─────────────────────────────────────────────── */
/*           Compact Logo header styles           */
/* ─────────────────────────────────────────────── */

.logo-header {
    text-align: center;
    margin-bottom: 12px;       /* keeps header close to Username field */
}

.register-logo {
    display: block;
    width: 40px;
    height: auto;
    margin: 0 auto 6px auto;   /* still tight spacing between R and REGISTER */
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.55));
    animation: fadeIn 2.2s ease-in-out;
}
