/* register.css - 注册弹窗样式 */

.nk-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nk-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.nk-modal-content {
    position: relative;
    background: #1a1a2e;
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nk-modal-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nk-modal-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.nk-modal-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.nk-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nk-modal-body {
    padding: 24px;
}

.nk-modal-body .form-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

.nk-modal-body .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.2s;
}

.nk-modal-body .form-control:focus {
    border-color: #7367f0;
    box-shadow: 0 0 0 3px rgba(115, 103, 240, 0.2);
    outline: none;
}

.nk-modal-body .form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.nk-modal-body textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

.nk-modal-body .btn-glow {
    width: 100%;
    margin-top: 8px;
}

.nk-modal-body .btn-glow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.nk-toast {
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    10% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    90% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ───── 法律弹窗（服务条款/隐私政策） ───── */

.nk-modal-body-scroll {
    max-height: 65vh;
    overflow-y: auto;
    padding: 24px 28px 32px;
}

.legal-content {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4,
.legal-content h5,
.legal-content h6 {
    color: #fff;
    font-weight: 600;
    margin: 20px 0 8px;
}

.legal-content h1 { font-size: 20px; }
.legal-content h2 { font-size: 18px; }
.legal-content h3 { font-size: 16px; }
.legal-content h4,
.legal-content h5,
.legal-content h6 { font-size: 15px; }

.legal-content h1:first-child,
.legal-content h2:first-child,
.legal-content h3:first-child,
.legal-content h4:first-child,
.legal-content h5:first-child,
.legal-content h6:first-child {
    margin-top: 0;
}

.legal-content p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.65);
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 8px;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.65);
}

.legal-content strong {
    color: rgba(255, 255, 255, 0.9);
}

/* 法律弹窗宽度调整 */
#termsModal .nk-modal-content,
#privacyModal .nk-modal-content {
    max-width: 700px;
}

/* ───── 注册成功页面 ───── */

.register-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 28px 32px;
}

/* 图标 */
.register-success-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 大号标题 */
.register-success-heading {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px;
}

/* 说明文字 */
.register-success-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
    margin: 0;
}
