* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-video-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    background: #000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #e5e7eb;
    position: relative;
    overflow-x: hidden;
}

body.register-page {
    padding: 40px 20px;
}

.video-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #000;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
    width: 100%;
    padding: 40px;
    backdrop-filter: blur(8px);
}

.login-container {
    max-width: 420px;
    overflow: hidden;
}

.register-container {
    max-width: 600px;
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header h1 {
    font-size: 28px;
    color: #FFE4B5;
    margin-bottom: 8px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.auth-header p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.form-section {
    margin-bottom: 30px;
}

.section-title {
    color: #FFE4B5;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

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

.form-group {
    margin-bottom: 20px;
}

.login-container .form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #FFE4B5;
    font-weight: 500;
    font-size: 14px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.required {
    color: #e74c3c;
    margin-left: 2px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 15px;
    color: #e5e7eb;
    transition: all 0.3s;
}

.form-group input::placeholder {
    color: #666;
}

.form-group input:focus {
    outline: none;
    border-color: #FFE4B5;
    box-shadow: 0 0 0 3px rgba(255, 228, 181, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.form-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
}

.qq-email-input,
.verify-code-row {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.verify-code-row {
    gap: 10px;
    align-items: center;
}

.qq-email-input input,
.verify-code-row input {
    flex: 1;
    min-width: 0;
}

.qq-email-input input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.qq-email-suffix {
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #FFE4B5;
    font-size: 15px;
    white-space: nowrap;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.alert-danger {
    background-color: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.4);
}

.alert-success {
    background-color: rgba(52, 211, 153, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(52, 211, 153, 0.4);
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.btn {
    width: 100%;
    padding: 14px;
    background: rgba(255, 228, 181, 0.6);
    color: #FFE4B5;
    border: 1px solid rgba(255, 228, 181, 0.8);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 228, 181, 0.8);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    color: #fff;
}

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

.btn:disabled,
.btn[style*="opacity: 0.6"] {
    opacity: 0.6 !important;
    cursor: not-allowed;
}

#sendCodeBtn {
    width: 140px;
    white-space: nowrap;
    padding: 12px 18px;
    background: rgba(255, 228, 181, 0.6);
    color: #FFE4B5;
    border: 1px solid rgba(255, 228, 181, 0.8);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

#sendCodeBtn:hover {
    background: rgba(255, 228, 181, 0.8);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#sendCodeBtn:disabled {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    cursor: not-allowed !important;
    transform: none !important;
    opacity: 0.6;
    text-shadow: none;
}

.agreement-box {
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agreement-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.agreement-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

.agreement-link,
.forgot-password,
.login-links a {
    color: #FFE4B5;
    text-decoration: none;
}

.forgot-password {
    font-size: 13px;
    white-space: nowrap;
}

.agreement-link:hover,
.forgot-password:hover,
.login-links a:hover {
    text-decoration: underline;
}

.login-links {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.success-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.success-actions a {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.success-actions .primary {
    background: rgba(255, 228, 181, 0.6);
    color: #FFE4B5;
    border: 1px solid rgba(255, 228, 181, 0.8);
}

.success-actions .secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .register-container {
        padding: 30px 20px;
    }

    .success-actions,
    .verify-code-row {
        flex-direction: column;
        align-items: stretch;
    }

    #sendCodeBtn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body.auth-video-page {
        padding: 14px;
    }

    .auth-card {
        padding: 30px 20px;
    }

    .agreement-box {
        align-items: flex-start;
        gap: 12px;
    }
}
