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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 50%, #00ccff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-y: auto;
}

body::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(40px);
}

body::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    filter: blur(40px);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.auth-container {
    max-width: 450px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.auth-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

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

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

.auth-header .material-symbols-outlined {
    font-size: 64px;
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    display: inline-block;
}

.auth-header h1 {
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 36px;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: #4a7ba7;
    font-size: 15px;
    font-weight: 500;
}

/* 警告和错误提示 */
.alert {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

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

.alert .material-symbols-outlined {
    font-size: 24px;
    flex-shrink: 0;
}

.alert-error {
    background: #fee;
    color: #c53030;
    border-left: 4px solid #ef4444;
}

.alert-error .material-symbols-outlined {
    color: #ef4444;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.alert-success .material-symbols-outlined {
    color: #4caf50;
}

.alert-warning {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid #ff9800;
}

.alert-warning .material-symbols-outlined {
    color: #ff9800;
}

.alert p {
    margin: 4px 0;
}

/* 表单样式 */
.auth-form {
    margin-bottom: 20px;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a3a52;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.form-group label .material-symbols-outlined {
    font-size: 20px;
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #d0e8f2;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: rgba(240, 248, 255, 0.5);
    color: #1a3a52;
}

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

.form-group input:focus {
    outline: none;
    border-color: #0099ff;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 153, 255, 0.1);
}

.form-group input:disabled {
    background: #edf2f7;
    cursor: not-allowed;
}

.form-group small {
    display: block;
    color: #718096;
    font-size: 12px;
    margin-top: 5px;
}

.form-info {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08) 0%, rgba(0, 153, 255, 0.08) 100%);
    padding: 13px 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0066cc;
    font-size: 14px;
    border: 1px solid rgba(0, 153, 255, 0.2);
}

.form-info .material-symbols-outlined {
    font-size: 20px;
    color: #0099ff;
    flex-shrink: 0;
}

.form-info strong {
    color: #0066cc;
    font-weight: 700;
}

/* 按钮样式 */
.btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 102, 204, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: #b3d9f2;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn .material-symbols-outlined {
    font-size: 22px;
}

/* 页脚链接 */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 102, 204, 0.15);
}

.auth-footer p {
    color: #4a7ba7;
    font-size: 14px;
    margin: 8px 0;
}

.auth-footer a {
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* 安全信息 */
.security-info {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 22px;
    margin-top: 25px;
    text-align: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.security-info .material-symbols-outlined {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.95;
}

.security-info p {
    font-size: 13px;
    margin: 6px 0;
    opacity: 0.9;
    line-height: 1.5;
}

/* 滑块验证码 */
.captcha-container {
    margin-top: 10px;
}

.captcha-track {
    position: relative;
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 153, 255, 0.1) 100%);
    border-radius: 25px;
    overflow: hidden;
    user-select: none;
    box-shadow: inset 0 2px 5px rgba(0, 102, 204, 0.1), 0 0 0 1px rgba(0, 153, 255, 0.2);
    border: 1px solid rgba(0, 153, 255, 0.2);
}

.captcha-slider {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0099ff 0%, #0066cc 100%);
    border-radius: 50%;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
    z-index: 2;
}

.captcha-slider:active {
    cursor: grabbing;
}

.captcha-slider.verified {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    cursor: default;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.captcha-text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066cc;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
}

.captcha-success {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
    z-index: 1;
}

.captcha-success.show {
    display: flex;
}

.captcha-track.verified {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        display: flex;
        flex-direction: column;
        padding: 0;
        min-height: 100vh;
        align-items: stretch;
        justify-content: flex-start;
    }
    
    .auth-container {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        max-width: 100%;
        width: 100%;
        flex: 1;
    }
    
    .auth-box {
        padding: 30px 20px;
        flex: 1;
        border-radius: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
    }
    
    .auth-header h1 {
        font-size: 28px;
    }
    
    .auth-header .material-symbols-outlined {
        font-size: 48px;
    }
    
    .security-info {
        border-radius: 0;
        margin-top: auto;
        margin-bottom: 0;
        flex-shrink: 0;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 密码强度指示器 */
.password-strength {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak {
    width: 33%;
    background: #ef4444;
}

.strength-medium {
    width: 66%;
    background: #f59e0b;
}

.strength-strong {
    width: 100%;
    background: #10b981;
}

/* ==================== 移动端响应式设计 ==================== */

/* 平板设备 (768px 以下) */
@media (max-width: 768px) {
    .auth-container {
        padding: 20px;
    }
    
    .auth-box {
        max-width: 100%;
        padding: 30px 25px;
    }
    
    .auth-header h1 {
        font-size: 26px;
    }
    
    .auth-header p {
        font-size: 14px;
    }
}

/* 手机设备 (480px 以下) */
@media (max-width: 480px) {
    .auth-container {
        padding: 15px;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .auth-box {
        padding: 25px 20px;
        margin: 0;
    }
    
    .auth-header {
        margin-bottom: 25px;
    }
    
    .auth-header .material-symbols-outlined {
        font-size: 40px;
    }
    
    .auth-header h1 {
        font-size: 22px;
    }
    
    .auth-header p {
        font-size: 13px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-group input {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .input-icon {
        font-size: 20px;
        left: 12px;
    }
    
    .form-group input {
        padding-left: 42px;
    }
    
    .password-toggle {
        right: 12px;
        font-size: 20px;
    }
    
    .btn-primary {
        padding: 12px;
        font-size: 15px;
    }
    
    .btn-primary .material-symbols-outlined {
        font-size: 20px;
    }
    
    .auth-divider {
        margin: 20px 0;
        font-size: 13px;
    }
    
    .btn-secondary {
        padding: 11px;
        font-size: 14px;
    }
    
    .auth-footer {
        margin-top: 20px;
    }
    
    .auth-footer p {
        font-size: 13px;
    }
    
    .alert {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .alert .material-symbols-outlined {
        font-size: 20px;
    }
    
    .password-strength {
        margin-top: 6px;
    }
    
    .strength-text {
        font-size: 12px;
    }
}

/* 超小屏幕 (360px 以下) */
@media (max-width: 360px) {
    .auth-box {
        padding: 20px 15px;
    }
    
    .auth-header h1 {
        font-size: 20px;
    }
    
    .auth-header p {
        font-size: 12px;
    }
    
    .form-group label {
        font-size: 12px;
    }
    
    .form-group input {
        font-size: 13px;
        padding: 10px 12px 10px 38px;
    }
    
    .btn-primary,
    .btn-secondary {
        font-size: 13px;
        padding: 10px;
    }
}
