/**
 * PlayGate 认证界面样式
 * 符合深蓝配粉主题
 */

/* 登录按钮 */
.login-btn {
    position: fixed;
    top: 20px;
    right: -10px;
    background: linear-gradient(135deg, 
        rgba(255, 69, 0, 0.95) 0%, 
        rgba(255, 140, 0, 0.9) 50%, 
        rgba(255, 20, 147, 0.95) 100%);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-size: 14px;
    /* 光效动画 */
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4), 0 2px 10px rgba(255, 20, 147, 0.3);
    background: linear-gradient(135deg, 
        rgba(255, 69, 0, 1) 0%, 
        rgba(255, 140, 0, 0.95) 50%, 
        rgba(255, 20, 147, 1) 100%);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn.logged-in {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.95) 0%, 
        rgba(16, 185, 129, 0.9) 50%, 
        rgba(6, 182, 212, 0.95) 100%);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.login-btn.logged-in:hover {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 1) 0%, 
        rgba(16, 185, 129, 0.95) 50%, 
        rgba(6, 182, 212, 1) 100%);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4), 0 2px 10px rgba(6, 182, 212, 0.3);
}

/* 用户档案样式 */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-phone {
    font-size: 13px;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 认证模态框 */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

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

.auth-modal-content {
    background: linear-gradient(145deg, 
        rgba(15, 20, 25, 0.95) 0%, 
        rgba(26, 35, 126, 0.9) 30%, 
        rgba(63, 81, 181, 0.8) 70%, 
        rgba(233, 30, 99, 0.85) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 95vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.auth-modal-header {
    padding: 24px 24px 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-modal-header h2 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.auth-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.auth-modal-body {
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
}

/* 自定义滚动条样式 */
.auth-modal-body::-webkit-scrollbar {
    width: 6px;
}

.auth-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.auth-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.auth-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.auth-step {
    animation: stepSlide 0.3s ease;
}

@keyframes stepSlide {
    from { 
        opacity: 0;
        transform: translateX(20px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

/* 输入组件 */
.input-group {
    margin-bottom: 20px;
}

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

.input-group input {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

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

/* 密码强度指示器 */
.password-strength {
    margin-top: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.strength-requirements {
    display: grid;
    gap: 4px;
}

.req-item {
    font-size: 12px;
    transition: all 0.3s ease;
    padding: 2px 0;
}

.req-item.valid {
    color: #4ade80;
}

.req-item.invalid {
    color: rgba(255, 255, 255, 0.5);
}

.req-item.valid::before {
    content: "✓";
    margin-right: 6px;
    color: #4ade80;
    font-weight: bold;
}

.req-item.invalid::before {
    content: "✗";
    margin-right: 6px;
    color: #f87171;
    font-weight: bold;
}

/* 手机号输入组件 */
.phone-input-container {
    display: flex;
    gap: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: visible;
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
}

.phone-input-container:focus-within {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* 固定区号显示 */
.country-code {
    padding: 16px 12px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    font-weight: 500;
    min-width: 100px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    white-space: nowrap;
}




.phone-input-container #phone-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px;
    margin: 0;
    border-radius: 0;
    box-sizing: border-box;
}

.phone-input-container #phone-input:focus {
    outline: none;
    border: none;
    background: transparent;
    box-shadow: none;
}

/* 按钮样式 */
.auth-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, rgba(56, 178, 255, 0.8) 0%, rgba(255, 107, 167, 0.8) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.auth-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 178, 255, 0.3);
    background: linear-gradient(135deg, rgba(56, 178, 255, 0.9) 0%, rgba(255, 107, 167, 0.9) 100%);
}

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

.auth-btn-secondary {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* 重发按钮 */
.resend-section {
    text-align: center;
    margin-bottom: 20px;
}

.resend-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.resend-btn:hover:not(:disabled) {
    color: white;
}

.resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: none;
}

/* 加载状态 */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 页脚 */
.auth-modal-footer {
    padding: 0 24px 24px;
    text-align: center;
}

.auth-terms {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.auth-terms a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.auth-terms a:hover {
    color: white;
    text-decoration: underline;
}

/* Toast 提示样式 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.toast {
    background: linear-gradient(135deg, 
        rgba(26, 35, 126, 0.95) 0%, 
        rgba(63, 81, 181, 0.9) 50%, 
        rgba(233, 30, 99, 0.9) 100%);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
    min-width: 300px;
    max-width: 400px;
}

.toast-show {
    transform: translateX(0);
    opacity: 1;
}

.toast-hide {
    transform: translateX(400px);
    opacity: 0;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-message {
    color: white;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.toast-success {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.9) 0%, 
        rgba(59, 130, 246, 0.8) 50%, 
        rgba(147, 51, 234, 0.9) 100%);
}

.toast-error {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.9) 0%, 
        rgba(219, 39, 119, 0.9) 50%, 
        rgba(147, 51, 234, 0.8) 100%);
}

.toast-info {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.9) 0%, 
        rgba(147, 51, 234, 0.8) 50%, 
        rgba(219, 39, 119, 0.9) 100%);
}

/* 确认对话框样式 */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: modalFadeIn 0.2s ease;
}

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

.confirm-modal-content {
    background: linear-gradient(135deg, 
        rgba(26, 35, 126, 0.95) 0%, 
        rgba(63, 81, 181, 0.9) 50%, 
        rgba(233, 30, 99, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.confirm-modal-header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.confirm-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.confirm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.confirm-modal-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-align: center;
}

.confirm-user-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.confirm-modal-body {
    padding: 20px 24px;
}

.confirm-modal-body p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

.confirm-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
}

.btn-cancel, .btn-confirm {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-confirm {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-confirm:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
}

/* 移动端适配 */
@media (max-width: 480px) {
    .login-btn {
        top: 15px;
        right: 10px;
        font-size: 13px;
    }

    .user-avatar {
        width: 24px;
        height: 24px;
    }
    
    .user-phone {
        font-size: 12px;
    }

    .auth-modal-content {
        width: 95%;
        margin: 10px;
        border-radius: 15px;
    }

    .auth-modal-header {
        padding: 20px 20px 10px 20px;
    }

    .auth-modal-header h2 {
        font-size: 20px;
    }

    .auth-modal-body {
        padding: 20px;
    }

    .input-group input {
        padding: 14px;
        font-size: 16px;
    }

    .auth-btn {
        padding: 14px;
        font-size: 15px;
    }

    .country-code {
        padding: 14px 10px;
        font-size: 15px;
        min-width: 85px;
    }
    
    .phone-input-container #phone-input {
        padding: 14px;
        font-size: 16px;
    }

    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .toast-show {
        transform: translateY(0);
    }
    
    .toast-hide {
        transform: translateY(-100px);
    }
    
    .toast-content {
        padding: 14px 16px;
    }
    
    .toast-message {
        font-size: 13px;
    }

    .confirm-modal-content {
        min-width: 280px;
        margin: 0 20px;
    }
}

/* Tab切换样式 */
.auth-modal-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

.tab-btn.active {
    color: #ffffff;
    border-bottom-color: #FF1493;
    background: rgba(255, 20, 147, 0.1);
}

.tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* 禁用状态的Tab按钮 */
.tab-btn:disabled,
.tab-btn[disabled] {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    pointer-events: none;
}

.tab-btn:disabled:hover,
.tab-btn[disabled]:hover {
    color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

/* 登录方式Tab */
.login-method-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
}

.method-tab {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.method-tab.active {
    background: linear-gradient(135deg, 
        rgba(0, 100, 200, 0.8) 0%, 
        rgba(100, 50, 200, 0.8) 50%, 
        rgba(255, 20, 147, 0.8) 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.method-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.method-tab.active:hover {
    background: linear-gradient(135deg, 
        rgba(0, 100, 200, 0.9) 0%, 
        rgba(100, 50, 200, 0.9) 50%, 
        rgba(255, 20, 147, 0.9) 100%);
}

/* Tab内容区域 */
.auth-tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

.login-method {
    animation: slideIn 0.3s ease-in-out;
}

.auth-step {
    animation: slideIn 0.3s ease-in-out;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 注册表单特殊样式 */
#register-gender {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    cursor: pointer;
}

#register-gender option {
    background: rgba(20, 30, 60, 0.95);
    color: white;
    padding: 8px;
}

#register-birthday {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    width: 100%;
}

#register-birthday::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* 用户详情显示样式 */
.user-details {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
    text-align: right;
}

.user-name {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0;
    text-align: center;
}

.logout-question {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.logout-question p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
}

/* 手机端适配 */
@media (max-width: 480px) {
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .detail-value {
        text-align: left;
        font-weight: 500;
    }
    
    .user-details {
        padding: 12px;
    }
}

/* 深色主题适配 */
@media (prefers-color-scheme: dark) {
    .auth-modal {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .auth-modal-content {
        background: linear-gradient(145deg, 
            rgba(10, 15, 20, 0.98) 0%, 
            rgba(20, 25, 100, 0.95) 30%, 
            rgba(50, 70, 160, 0.9) 70%, 
            rgba(200, 20, 80, 0.9) 100%);
    }
}

/* 响应式间距优化 - 基于屏幕高度 */
@media (max-height: 700px) {
    .input-group {
        margin-bottom: 15px;
    }
    
    .auth-modal-body {
        padding: 20px;
    }
    
    .password-strength {
        padding: 10px;
        margin-top: 6px;
    }
    
    .auth-modal-header {
        padding: 20px 24px 12px 24px;
    }
    
    .auth-modal-footer {
        padding: 0 20px 20px;
    }
}

@media (max-height: 600px) {
    .input-group {
        margin-bottom: 12px;
    }
    
    .auth-modal-body {
        padding: 16px;
    }
    
    .password-strength {
        padding: 8px;
        margin-top: 4px;
    }
    
    .auth-modal-header {
        padding: 16px 20px 8px 20px;
    }
    
    .auth-modal-header h2 {
        font-size: 20px;
    }
    
    .auth-modal-footer {
        padding: 0 16px 16px;
    }
    
    .input-group label {
        margin-bottom: 6px;
        font-size: 13px;
    }
}

/* 极小屏幕适配（如键盘弹起时）*/
@media (max-height: 500px) {
    .auth-modal-content {
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        width: 100%;
    }
    
    .input-group {
        margin-bottom: 10px;
    }
    
    .auth-modal-body {
        padding: 12px;
    }
    
    .auth-modal-header {
        padding: 12px 16px 6px 16px;
    }
    
    .auth-modal-header h2 {
        font-size: 18px;
    }
}

/* 注册成功页面样式 */
.success-content {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

/* 新的成功图标样式 */
.success-icon-svg {
    width: 100%;
    height: 100%;
    animation: successIconEntrance 0.8s ease-out forwards;
}

/* 背景圆圈动画 */
.success-bg-circle {
    stroke: rgba(76, 175, 80, 0.3);
    stroke-width: 3;
    stroke-dasharray: 345;
    stroke-dashoffset: 345;
    animation: bgCircleStroke 0.8s ease-out 0.2s forwards;
}

/* 奖杯动画 */
.success-trophy {
    opacity: 0;
    transform: scale(0.3) translateY(10px);
    animation: trophyAppear 0.6s ease-out 0.6s forwards;
}

/* 对勾标记动画 */
.success-check-mark {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: checkMarkDraw 0.4s ease-out 1.0s forwards;
}

/* 星星动画 */
.success-stars .star {
    opacity: 0;
    transform: scale(0) rotate(180deg);
}

.star-1 { animation: starTwinkle 0.6s ease-out 0.8s forwards; }
.star-2 { animation: starTwinkle 0.6s ease-out 1.0s forwards; }
.star-3 { animation: starTwinkle 0.6s ease-out 1.2s forwards; }
.star-4 { animation: starTwinkle 0.6s ease-out 1.4s forwards; }

/* 粒子效果动画 */
.success-particles .particle {
    opacity: 0;
    transform: scale(0);
}

.particle-1 { animation: particleFloat 1.2s ease-out 1.2s forwards; }
.particle-2 { animation: particleFloat 1.0s ease-out 1.3s forwards; }
.particle-3 { animation: particleFloat 1.4s ease-out 1.1s forwards; }
.particle-4 { animation: particleFloat 1.1s ease-out 1.4s forwards; }
.particle-5 { animation: particleFloat 1.3s ease-out 1.0s forwards; }
.particle-6 { animation: particleFloat 1.0s ease-out 1.5s forwards; }

/* 动画关键帧 */
@keyframes successIconEntrance {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    50% {
        transform: scale(1.05) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes bgCircleStroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes trophyAppear {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(10px);
    }
    60% {
        transform: scale(1.1) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0px);
    }
}

@keyframes checkMarkDraw {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes starTwinkle {
    0% {
        opacity: 0;
        transform: scale(0) rotate(180deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.3) rotate(0deg);
    }
    100% {
        opacity: 0.9;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: scale(0) translateY(0px);
    }
    20% {
        opacity: 1;
        transform: scale(1.2) translateY(-5px);
    }
    50% {
        transform: scale(1) translateY(-10px);
    }
    100% {
        opacity: 0.7;
        transform: scale(0.8) translateY(-15px);
    }
}

.success-title {
    color: #4CAF50;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px;
    text-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.success-message {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.success-details {
    margin: 20px 0;
}

.welcome-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.success-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 32px;
    margin-top: 24px;
    transition: all 0.3s ease;
    text-transform: none;
}

.success-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #388e3c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.success-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

/* 步骤4的响应式适配 */
@media (max-height: 600px) {
    .success-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }
    
    .success-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .success-message {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .welcome-text {
        font-size: 13px;
    }
    
    .success-btn {
        padding: 14px 28px;
        margin-top: 16px;
    }
}