/* ========================================
   Register Modal V2 - Dark Tech Theme
   ======================================== */

#registerModal .modal-dialog {
    max-width: 900px;
    margin: 40px auto;
}

#registerModal .modal-content {
    background: transparent;
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

#registerModal .modal-backdrop {
    background-color: #0b1112;
    opacity: 0.85 !important;
}

.reg-modal-inner {
    display: flex;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f2440 0%, #0a1628 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Close Button */
.reg-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

.reg-close-btn:hover {
    color: #00d4ff;
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.08);
}

/* Form Side */
.reg-form-side {
    flex: 1;
    padding: 40px;
    min-width: 0;
}

.reg-form-side h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.reg-form-side .subtitle {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 32px;
}

/* Field */
.reg-field {
    margin-bottom: 20px;
}

.reg-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.reg-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.reg-input-wrap .reg-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #4a5568;
    pointer-events: none;
    z-index: 2;
}

.reg-field input[type="text"],
.reg-field input[type="password"],
.reg-field input[type="email"],
.reg-field input[type="tel"] {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.reg-field input::placeholder {
    color: #94a3b8;
}

.reg-field input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* Validation indicators */
.reg-input-wrap .checkNickNameOk,
.reg-input-wrap .checkUserOk,
.reg-input-wrap .checkPwdOk,
.reg-input-wrap .checkPhoneOk,
.reg-input-wrap .checkNickNameErr,
.reg-input-wrap .checkUserErr,
.reg-input-wrap .checkPwdErr,
.reg-input-wrap .checkPhoneErr {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    margin: 0 !important;
    display: block !important;
    z-index: 3;
}

.reg-input-wrap .removeCheckPng {
    display: none !important;
}

/* Code row */
.reg-code-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.reg-code-row .reg-input-wrap {
    flex: 1;
}

.reg-code-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
    background: linear-gradient(90deg, #00d4ff, #00e5a0);
    color: #0a1628;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 48px;
}

.reg-code-btn:hover {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transform: scale(1.02);
}

.reg-code-btn svg {
    width: 14px;
    height: 14px;
}

/* Agreement */
.reg-agree {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0;
}

.reg-agree input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #00d4ff;
    cursor: pointer;
}

.reg-agree span {
    font-size: 14px;
    color: #a0aec0;
}

.reg-agree a {
    color: #00d4ff;
    text-decoration: none;
    cursor: pointer;
}

.reg-agree a:hover {
    text-decoration: underline;
}

/* Submit Button */
.reg-submit-btn,
.reg_btn {
    width: 100%;
    height: 52px;
    background: linear-gradient(90deg, #00d4ff, #00e5a0);
    color: #0a1628;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reg-submit-btn:hover:not(:disabled),
.reg_btn:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    transform: scale(1.02);
}

.reg-submit-btn:disabled,
.reg_btn_disabled {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    background: #4a5568;
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

/* Decoration Side */
.reg-deco-side {
    display: none;
    width: 320px;
    padding: 40px 32px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.reg-deco-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 229, 160, 0.05));
}

.reg-deco-glow-1 {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    filter: blur(20px);
}

.reg-deco-glow-2 {
    position: absolute;
    bottom: 40px;
    left: 40px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 229, 160, 0.1);
    filter: blur(20px);
}

.reg-deco-icon {
    position: relative;
    z-index: 1;
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 229, 160, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.reg-deco-icon svg {
    width: 48px;
    height: 48px;
    color: #00d4ff;
}

.reg-deco-side h3 {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.reg-deco-side p {
    position: relative;
    z-index: 1;
    font-size: 14px;
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 4px;
}

.reg-deco-side .en {
    position: relative;
    z-index: 1;
    font-size: 12px;
    color: #4a5568;
    line-height: 1.5;
}

.reg-deco-dots {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.reg-deco-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d4ff;
    animation: reg-pulse 2s ease-in-out infinite;
}

.reg-deco-dots span:nth-child(2) {
    background: #00e5a0;
    animation-delay: 0.3s;
}

.reg-deco-dots span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes reg-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Responsive */
@media (min-width: 768px) {
    .reg-deco-side {
        display: flex;
    }
}

@media (max-width: 767px) {
    #registerModal .modal-dialog {
        margin: 16px;
    }
    .reg-form-side {
        padding: 24px;
    }
    .reg-code-row {
        flex-direction: column;
    }
    .reg-code-btn {
        width: 100%;
        justify-content: center;
    }
}
