/* Register Modal Styles */
.register-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.register-modal-overlay.active {
    display: flex;
}

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

.register-modal-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.register-modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(30, 30, 30, 0.95));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(48, 201, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                0 0 40px rgba(48, 201, 255, 0.2),
                inset 0 0 60px rgba(48, 201, 255, 0.05);
    position: relative;
    font-family: 'Prompt', sans-serif;
    max-height: 90vh;
    overflow-y: auto;
}

.register-modal-content::-webkit-scrollbar {
    width: 8px;
}

.register-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.register-modal-content::-webkit-scrollbar-thumb {
    background: rgba(48, 201, 255, 0.3);
    border-radius: 10px;
}

.register-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(48, 201, 255, 0.5);
}

.register-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(48, 201, 255, 0.2);
    border: 1px solid rgba(48, 201, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.register-modal-close:hover {
    background: rgba(48, 201, 255, 0.3);
    border-color: rgba(48, 201, 255, 0.5);
    transform: rotate(90deg);
}

.register-modal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(48, 201, 255, 0.2);
}

.register-modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.register-modal-header h2 i {
    color: #30c9ff;
    font-size: 26px;
}

.register-modal-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.register-form-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.register-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.register-form-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.register-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.register-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.register-label i {
    color: #30c9ff;
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.register-label span {
    color: #ffffff;
}

.register-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid rgba(48, 201, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Prompt', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.register-input:focus {
    outline: none;
    border-color: rgba(48, 201, 255, 0.5);
    background: rgba(20, 20, 20, 0.8);
    box-shadow: 0 0 15px rgba(48, 201, 255, 0.2);
}

.register-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Email Domain Dropdown Styles */
.email-input-wrapper {
    display: flex;
    gap: 0;
    position: relative;
}

.email-input-main {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
}

.email-domain-dropdown {
    position: relative;
}

.email-domain-btn {
    height: 100%;
    padding: 12px 16px;
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid rgba(48, 201, 255, 0.2);
    border-left: none;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    color: #ffffff;
    font-family: 'Prompt', sans-serif;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 130px;
}

.email-domain-btn:hover {
    background: rgba(20, 20, 20, 0.8);
    border-color: rgba(48, 201, 255, 0.4);
}

.email-domain-btn:focus {
    outline: none;
    border-color: rgba(48, 201, 255, 0.5);
    box-shadow: 0 0 10px rgba(48, 201, 255, 0.2);
}

.email-domain-btn i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.email-domain-dropdown.active .email-domain-btn i {
    transform: rotate(180deg);
}

.email-domain-list {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(48, 201, 255, 0.3);
    border-radius: 8px;
    list-style: none;
    padding: 5px 0;
    min-width: 150px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.email-domain-dropdown.active .email-domain-list {
    display: block;
    animation: fadeInDown 0.3s ease;
}

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

.email-domain-item {
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.email-domain-item:hover {
    background: rgba(48, 201, 255, 0.2);
    color: #30c9ff;
}

.email-domain-item.active {
    background: rgba(48, 201, 255, 0.15);
    color: #30c9ff;
    font-weight: 600;
}

.email-domain-list::-webkit-scrollbar {
    width: 6px;
}

.email-domain-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.email-domain-list::-webkit-scrollbar-thumb {
    background: rgba(48, 201, 255, 0.5);
    border-radius: 3px;
}

.email-domain-list::-webkit-scrollbar-thumb:hover {
    background: rgba(48, 201, 255, 0.7);
}

.register-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: -4px;
}

.register-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ff8c00' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.register-date {
    cursor: pointer;
}

.register-checkbox-group {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(48, 201, 255, 0.2);
}

.register-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    user-select: none;
}

.register-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #30c9ff;
}

.register-checkbox-text {
    color: rgba(255, 255, 255, 0.8);
}

.register-terms-link {
    color: #30c9ff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.register-terms-link:hover {
    color: #4ff3ff;
}

.register-error {
    display: none;
    font-size: 12px;
    color: #ff4444;
    margin-top: -4px;
    font-weight: 500;
}

.register-error.show {
    display: block;
    animation: shake 0.4s ease;
}

/* Google reCAPTCHA v2 Styles */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.g-recaptcha > div {
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .g-recaptcha {
        overflow: hidden;
    }
    
    .g-recaptcha > div {
        transform: scale(0.77);
        transform-origin: 0 0;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.register-form-footer {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.register-submit-btn,
.register-reset-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-family: 'Prompt', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.register-submit-btn {
    background: linear-gradient(135deg, #30c9ff, #4ff3ff);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(48, 201, 255, 0.3);
}

.register-submit-btn:hover {
    background: linear-gradient(135deg, #4ff3ff, #8bf7ff);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(48, 201, 255, 0.4);
}

.register-submit-btn:active {
    transform: translateY(0);
}

.register-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.register-reset-btn {
    background: rgba(40, 40, 40, 0.7);
    border: 1px solid rgba(48, 201, 255, 0.3);
    color: #ffffff;
}

.register-reset-btn:hover {
    background: rgba(50, 50, 50, 0.8);
    border-color: rgba(48, 201, 255, 0.5);
    transform: translateY(-2px);
}

.register-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: none;
    animation: fadeIn 0.3s ease;
}

.register-message.show {
    display: block;
}

.register-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #81c784;
}

.register-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: #ef5350;
}

.register-message.info {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid rgba(33, 150, 243, 0.4);
    color: #64b5f6;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .register-modal-content {
        padding: 30px 20px;
    }

    .register-modal-header h2 {
        font-size: 24px;
    }

    .register-form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .register-form-footer {
        flex-direction: column;
    }

    .register-submit-btn,
    .register-reset-btn {
        width: 100%;
    }
    
    .email-input-wrapper {
        flex-direction: column;
    }
    
    .email-input-main {
        border-radius: 10px;
        border-bottom-right-radius: 0;
    }
    
    .email-domain-btn {
        border-radius: 10px;
        border-top-right-radius: 0;
        border-top-left-radius: 0;
        border-left: 1px solid rgba(48, 201, 255, 0.2);
        width: 100%;
        min-width: auto;
    }
    
    .email-domain-list {
        left: 0;
        right: 0;
        width: 100%;
    }
}

