@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', 'Arial', sans-serif;
    margin: 0;
    background: #000000;
}

.scene {
    position: relative;
    min-height: 100vh;
    padding: 120px 40px 40px;
    background: 
        radial-gradient(ellipse at 50% 20%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        url('../images/background_login.png') center / cover no-repeat fixed;
    color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px;
    z-index: 0;
}

.scene::before {
    content:""; 
    position: absolute; 
    inset: 0; 
    pointer-events: none; 
    z-index: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(255, 215, 0, 0.03) 49px, rgba(255, 215, 0, 0.03) 50px),
        repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(255, 215, 0, 0.03) 49px, rgba(255, 215, 0, 0.03) 50px);
    opacity: 0.4;
}

.auth-container {
    background: rgba(8, 10, 14, 0.92);
    border: 2px solid #ffd700;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2), 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.auth-container h1 {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 30px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.alert {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: left;
}

.alert-error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #51cf66;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.auth-tab {
    flex: 1;
    padding: 15px;
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
    position: relative;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.05em;
}

.auth-tab.active {
    color: #ffd700;
}

.auth-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ffd700;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15), 0 0 20px rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.password-toggle {
    position: relative;
}

.password-toggle .show-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffd700;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
}

.sign-in-btn {
    width: 100%;
    padding: 14px;
    background: #ffd700;
    color: #000000;
    border: 2px solid #ffd700;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.05em;
}

.sign-in-btn:hover {
    background: #ffe14d;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

/* Forgot Password Link */
.forgot-password-link {
    text-align: center;
    margin-top: 16px;
}

.forgot-password-link a {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password-link a:hover {
    color: #ffd700;
    text-decoration: underline;
}

.checkbox-group {
    margin-bottom: 20px;
    margin-top: 5px;
}

/* Custom Checkbox Container */
.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* pushes checkbox to the right */
    gap: 10px;
    cursor: pointer;
}

/* Hide default checkbox */
.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom checkbox - sleek and minimal */
.checkmark {
    position: relative;
    flex-shrink: 0;
    height: 20px;
    width: 20px;
    background: rgba(20, 20, 30, 0.8);
    border: 2px solid rgba(255, 215, 0, 0.6);
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Hover effect */
.checkbox-container:hover .checkmark {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* When checked */
.checkbox-container input:checked ~ .checkmark {
    background: #ffd700;
    border-color: #ffd700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

/* Checkmark icon */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

/* Show checkmark when checked */
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
    animation: checkPop 0.3s ease;
}

@keyframes checkPop {
    0% {
        transform: rotate(45deg) scale(0);
    }
    50% {
        transform: rotate(45deg) scale(1.1);
    }
    100% {
        transform: rotate(45deg) scale(1);
    }
}

/* Disabled state */
.checkbox-container input:disabled ~ .checkmark {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 215, 0, 0.2);
    opacity: 0.5;
}

.checkbox-container input:disabled ~ .checkbox-text {
    opacity: 0.5;
}

.checkbox-text {
    flex: 1;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 400;
}

.terms-link {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    border-bottom: 1px solid rgba(255, 215, 0, 0.4);
}

.terms-link:hover {
    color: #ffed4e;
    border-bottom-color: #ffed4e;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, rgba(8, 10, 14, 0.98), rgba(16, 20, 32, 0.95));
    margin: 3% auto;
    padding: 0;
    border: 2px solid #ffd700;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.3), 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 25px 30px;
    background: rgba(255, 215, 0, 0.05);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.close-modal {
    color: #ffd700;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.close-modal:hover {
    color: #fff;
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
    max-height: 500px;
    overflow-y: auto;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}

/* Custom scrollbar */
.modal-body::-webkit-scrollbar {
    width: 10px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.4);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.6);
}

.modal-body h3 {
    color: #ffd700;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-body p {
    line-height: 1.7;
    margin-bottom: 12px;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-body ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.last-updated {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 25px;
    font-style: italic;
}

.scroll-notice {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, rgba(8, 10, 14, 0.98) 70%, transparent);
    padding: 20px 0 10px;
    text-align: center;
    margin-top: 20px;
}

.scroll-notice p {
    color: #ffd700;
    font-weight: 600;
    animation: bounce 2s infinite;
    margin: 0;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.modal-footer {
    padding: 20px 30px;
    background: rgba(255, 215, 0, 0.05);
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-accept,
.btn-decline {
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    border: 2px solid;
}

.btn-accept {
    background: #ffd700;
    color: #000;
    border-color: #ffd700;
}

.btn-accept:hover:not(:disabled) {
    background: #ffe14d;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

.btn-accept:disabled {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.3);
    color: rgba(0, 0, 0, 0.4);
    cursor: not-allowed;
}

.btn-decline {
    background: transparent;
    color: #ffd700;
    border-color: #ffd700;
}

.btn-decline:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.alert-info {
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.3);
    color: #4dabf7;
}

.alert h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
}

.alert p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.alert .note {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.8;
}

.btn-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-solid,
.btn-ghost {
    flex: 1;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Orbitron', sans-serif;
    display: inline-block;
}

.btn-solid {
    background: #ffd700;
    color: #000000;
    border: 2px solid #ffd700;
}

.btn-solid:hover {
    background: #ffe14d;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.btn-ghost {
    background: transparent;
    color: #ffd700;
    border: 2px solid #ffd700;
}

.btn-ghost:hover {
    background: rgba(255, 215, 0, 0.1);
}

.quick-links {
    margin-top: 16px;
    text-align: center;
    color: #ddd;
    font-size: 0.95rem;
}

.quick-links a {
    color: #ffd54f;
    text-decoration: none;
    font-weight: 700;
    margin: 0 8px;
}

.quick-links a:hover {
    color: #ffb84d;
    text-decoration: underline;
}


/* Date of Birth Field */
.dob-group {
    position: relative;
}

.dob-label {
    display: block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
}

.dob-group input[type="date"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    color-scheme: dark;
}

.dob-group input[type="date"]:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15), 0 0 20px rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.dob-hint {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
    transition: color 0.2s ease;
}

.dob-hint.dob-error {
    color: #ff6b6b;
}

.dob-hint.dob-valid {
    color: #51cf66;
}

/* Password Requirements */
.password-requirements {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    text-align: left;
}

.password-requirements .req-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    font-weight: 600;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    font-size: 0.82rem;
    padding: 3px 0 3px 22px;
    position: relative;
    transition: color 0.2s ease;
}

.password-requirements li::before {
    position: absolute;
    left: 0;
    font-size: 0.85rem;
}

.password-requirements li.req-unmet {
    color: rgba(255, 255, 255, 0.4);
}

.password-requirements li.req-unmet::before {
    content: "○";
    color: rgba(255, 255, 255, 0.3);
}

.password-requirements li.req-met {
    color: #51cf66;
}

.password-requirements li.req-met::before {
    content: "●";
    color: #51cf66;
}

/* Avatar Picker */
.avatar-picker-group {
    margin-bottom: 20px;
}

.avatar-picker-label {
    display: block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    text-align: left;
}

.avatar-picker {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.avatar-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.03);
    min-width: 68px;
}

.avatar-option input[type="radio"] {
    display: none;
}

.avatar-option .avatar-emoji {
    font-size: 1.8rem;
    line-height: 1;
}

.avatar-option .avatar-name {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Orbitron', sans-serif;
}

.avatar-option:hover {
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.05);
}

.avatar-option.selected {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.avatar-option.selected .avatar-name {
    color: #ffd700;
}