/* 登录页面样式 */

/* 移动端视口优化 */
@viewport {
    width: device-width;
    initial-scale: 1.0;
    maximum-scale: 1.0;
    user-scalable: no;
}

.login-page {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

/* 动态背景动画 */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 添加浮动粒子效果 */
.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(20px) rotate(240deg);
    }
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    position: relative;
    z-index: 999;
    box-sizing: border-box;
    min-width: 280px; /* 确保最小宽度 */
}

.login-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}
.login-box .alert-danger{text-align: center;
    padding: 10px;
    color: #bb3636;
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: #f8f9fa;
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.login-header h1 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.login-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.login-form, .register-form {
    padding: 30px;
    padding-bottom: 0;
}
.form-section .form-footer{
    text-align: center;
    padding-bottom: 10px;
}
.form-section .form-footer a{color: #000;font-size: .9rem;}
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 验证码样式 */
.captcha-group {
    display: flex;
    gap: 12px;
}

.captcha-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.captcha-input-wrapper input {
    flex: 1;
    padding-right: 45px;
}

.captcha-refresh-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.captcha-refresh-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.captcha-refresh-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.refresh-icon {
    font-size: 14px;
    font-weight: bold;
}

.captcha-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.captcha-image {
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
}

.captcha-image:not(.loading):hover {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.captcha-image:active {
    transform: scale(0.98);
}

.captcha-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(-45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f8f9fa 75%), 
                linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.placeholder-text {
    color: #999;
    font-size: 12px;
    text-align: center;
    padding: 0 10px;
}

.captcha-image img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
}

.captcha-image.loading {
    background: #f8f9fa url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwIDNDMTMuODY2IDMgMTcgNi4xMzQwMSAxNyAxMEMxNyAxMy44NjYgMTMuODY2IDE3IDEwIDE3QzYuMTM0MDEgMTcgMyAxMy44NjYgMyAxMEMzIDYuMTM0MDEgNi4xMzQwMSAzIDEwIDNaIiBzdHJva2U9IiM2NjdlZWEiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=') center no-repeat;
    animation: spin 1s linear infinite;
}

.captcha-tip {
    font-size: 11px;
    color: #666;
    text-align: center;
    margin: 0;
}

.captcha-hint {
    color: #666;
    font-size: 12px;
    margin-top: 8px;
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 登录限制提示 */
.login-limit-warning {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #ffeaa7;
    font-size: 14px;
}

.login-limit-warning strong {
    color: #d63031;
}

/* 错误计数显示 */
.error-count {
    background: #f8d7da;
    color: #721c24;
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
    font-size: 13px;
    text-align: center;
}

.error-count .count {
    font-weight: bold;
    color: #d63031;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    position: relative;
    padding-left: 30px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.checkbox-label:hover input ~ .checkmark {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #667eea;
    border-color: #667eea;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.form-links {
    margin-top: 20px;
    text-align: center;
}

.form-links a {
    color: #667eea;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.form-links a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    font-size: 14px;
}

.error-message p {
    margin: 0 0 5px 0;
}

.error-message p:last-child {
    margin-bottom: 0;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    font-size: 14px;
}

h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    text-align: center;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-container {
        padding: 15px;
        max-width: 100%;
    }
    
    .login-box {
        border-radius: 8px;
        margin: 10px;
    }
    
    .login-header,
    .login-form,
    .register-form {
        padding: 25px 20px;
    }
    
    .login-header h1 {
        font-size: 22px;
    }
    
    .login-header p {
        font-size: 13px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group select {
        padding: 14px 12px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    /* 验证码移动端优化 */
    .captcha-group {
        gap: 10px;
    }
    
    .captcha-input-wrapper {
        gap: 6px;
    }
    
    .captcha-input-wrapper input {
        padding-right: 40px;
        font-size: 16px;
    }
    
    .captcha-refresh-btn {
        width: 36px;
        height: 36px;
        right: 6px;
    }
    
    .refresh-icon {
        font-size: 16px;
    }
    
    .captcha-image {
        height: 55px;
        border-radius: 8px;
    }
    
    .captcha-tip {
        font-size: 10px;
    }
    
    .captcha-hint {
        font-size: 11px;
        margin-top: 6px;
    }
    
    /* 错误信息移动端优化 */
    .alert {
        padding: 12px;
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .login-limit-warning {
        padding: 15px;
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .error-count {
        padding: 10px;
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    /* 表单切换链接优化 */
    .form-footer {
        padding: 15px 0;
    }
    
    .form-footer a {
        font-size: 14px;
        padding: 8px 12px;
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }
    
    .login-box {
        border-radius: 6px;
        margin: 5px;
    }
    
    .login-header,
    .login-form,
    .register-form {
        padding: 20px 15px;
    }
    
    .login-header h1 {
        font-size: 20px;
    }
    
    .login-header p {
        font-size: 12px;
    }
    
    h2 {
        font-size: 16px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 12px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px 10px;
        font-size: 16px;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    /* 小屏幕验证码优化 */
    .captcha-input-wrapper input {
        padding-right: 35px;
    }
    
    .captcha-refresh-btn {
        width: 32px;
        height: 32px;
        right: 4px;
    }
    
    .refresh-icon {
        font-size: 14px;
    }
    
    .captcha-image {
        height: 48px;
        border-radius: 6px;
    }
    
    .captcha-tip {
        font-size: 9px;
    }
    
    .captcha-hint {
        font-size: 10px;
        margin-top: 4px;
    }
    
    /* 小屏幕错误信息优化 */
    .alert {
        padding: 10px;
        font-size: 12px;
    }
    
    .login-limit-warning {
        padding: 12px;
        font-size: 12px;
    }
    
    .error-count {
        padding: 8px;
        font-size: 11px;
    }
    
    /* 小屏幕表单切换优化 */
    .form-footer {
        padding: 12px 0;
    }
    
    .form-footer a {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 375px) {
    .login-container {
        padding: 15px;
        max-width: 100%;
    }
    
    .login-box {
        margin: 5px;
        border-radius: 6px;
    }
    
    .login-header,
    .login-form,
    .register-form {
        padding: 18px 12px;
    }
    
    .login-header h1 {
        font-size: 19px;
        margin-bottom: 8px;
    }
    
    .login-header p {
        font-size: 11px;
    }
    
    h2 {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 14px;
    }
    
    .form-group label {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .form-group input,
    .form-group select {
        padding: 11px 9px;
        font-size: 16px;
        border-radius: 4px;
    }
    
    .btn {
        padding: 11px 14px;
        font-size: 14px;
        border-radius: 4px;
    }
    
    /* 验证码超小屏幕优化 */
    .captcha-group {
        gap: 8px;
    }
    
    .captcha-input-wrapper input {
        padding-right: 32px;
    }
    
    .captcha-refresh-btn {
        width: 28px;
        height: 28px;
        right: 3px;
    }
    
    .refresh-icon {
        font-size: 12px;
    }
    
    .captcha-image {
        height: 42px;
        border-radius: 4px;
    }
    
    .captcha-tip {
        font-size: 8px;
    }
    
    .captcha-hint {
        font-size: 9px;
        margin-top: 3px;
    }
    
    /* 错误信息超小屏幕优化 */
    .alert {
        padding: 9px;
        font-size: 11px;
        margin-bottom: 12px;
        border-radius: 4px;
    }
    
    .login-limit-warning {
        padding: 10px;
        font-size: 11px;
        margin-bottom: 12px;
        border-radius: 4px;
    }
    
    .error-count {
        padding: 7px;
        font-size: 10px;
        margin-bottom: 12px;
        border-radius: 4px;
    }
    
    /* 表单切换超小屏幕优化 */
    .form-footer {
        padding: 10px 0;
    }
    
    .form-footer a {
        font-size: 12px;
        padding: 5px 8px;
        border-radius: 4px;
    }
    
    /* 复选框优化 */
    .checkbox-label {
        font-size: 11px;
        padding-left: 25px;
    }
    
    .checkbox-label .checkmark {
        width: 16px;
        height: 16px;
        left: 0;
    }
    
    .checkbox-label .checkmark:after {
        left: 5px;
        top: 2px;
        width: 4px;
        height: 8px;
    }
}

/* 极小屏幕优化 */
@media (max-width: 320px) {
    .login-container {
        padding: 5px;
    }
    
    .login-box {
        margin: 2px;
        border-radius: 4px;
    }
    
    .login-header,
    .login-form,
    .register-form {
        padding: 15px 8px;
    }
    
    .login-header h1 {
        font-size: 17px;
        margin-bottom: 6px;
    }
    
    .login-header p {
        font-size: 10px;
    }
    
    h2 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 10px;
        margin-bottom: 3px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 7px;
        font-size: 16px;
        border-radius: 3px;
    }
    
    .btn {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 3px;
    }
    
    /* 验证码极小屏幕优化 */
    .captcha-group {
        gap: 6px;
    }
    
    .captcha-input-wrapper input {
        padding-right: 28px;
    }
    
    .captcha-refresh-btn {
        width: 24px;
        height: 24px;
        right: 2px;
    }
    
    .refresh-icon {
        font-size: 10px;
    }
    
    .captcha-image {
        height: 38px;
        border-radius: 3px;
    }
    
    .captcha-tip {
        font-size: 7px;
    }
    
    .captcha-hint {
        font-size: 8px;
        margin-top: 2px;
    }
    
    /* 错误信息极小屏幕优化 */
    .alert {
        padding: 8px;
        font-size: 10px;
        margin-bottom: 10px;
        border-radius: 3px;
    }
    
    .login-limit-warning {
        padding: 8px;
        font-size: 10px;
        margin-bottom: 10px;
        border-radius: 3px;
    }
    
    .error-count {
        padding: 6px;
        font-size: 9px;
        margin-bottom: 10px;
        border-radius: 3px;
    }
    
    /* 表单切换极小屏幕优化 */
    .form-footer {
        padding: 8px 0;
    }
    
    .form-footer a {
        font-size: 11px;
        padding: 4px 6px;
        border-radius: 3px;
    }
    
    /* 复选框极小屏幕优化 */
    .checkbox-label {
        font-size: 10px;
        padding-left: 22px;
    }
    
    .checkbox-label .checkmark {
        width: 14px;
        height: 14px;
    }
    
    .checkbox-label .checkmark:after {
        left: 4px;
        top: 1px;
        width: 3px;
        height: 6px;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .login-page {
        min-height: 100vh;
        padding: 10px 0;
    }
    
    .login-container {
        padding: 5px 15px;
    }
    
    .login-box {
        margin: 5px;
    }
    
    .login-header {
        padding: 15px 20px;
    }
    
    .login-header h1 {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .login-header p {
        font-size: 11px;
    }
    
    .login-form,
    .register-form {
        padding: 15px 20px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .form-group input,
    .form-group select {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .captcha-group {
        gap: 4px;
    }
    
    .captcha-input-wrapper input {
        padding-right: 30px;
    }
    
    .captcha-refresh-btn {
        width: 26px;
        height: 26px;
        right: 2px;
    }
    
    .refresh-icon {
        font-size: 11px;
    }
    
    .captcha-image {
        height: 35px;
        border-radius: 3px;
    }
    
    .captcha-tip {
        font-size: 8px;
    }
    
    .captcha-hint {
        font-size: 9px;
        margin-top: 2px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .captcha-image:hover,
    .captcha-refresh:hover {
        transform: none;
        box-shadow: none;
    }
    
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    .form-group input:focus,
    .form-group select:focus {
        box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
    }
    
    /* 增加触摸目标大小 */
    .captcha-image {
        min-height: 44px;
    }
    
    .captcha-refresh-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .btn {
        min-height: 44px;
    }
    
    .form-footer a {
        min-height: 44px;
        line-height: 44px;
    }
}

/* 移动端特定优化 */
@media (max-width: 768px) {
    /* 防止iOS缩放 */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important;
    }
    
    /* 改善滚动体验 */
    .login-page {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
    
    /* 优化表单元素间距 */
    .form-group + .form-group {
        margin-top: 15px;
    }
    
    /* 改善按钮点击反馈 */
    .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .captcha-image:active,
    .captcha-refresh:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* 优化错误信息显示 */
    .alert {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* 改善链接点击区域 */
    .form-footer a {
        padding: 10px 15px;
        margin: 5px;
        border-radius: 5px;
        background: rgba(102, 126, 234, 0.1);
        transition: background 0.3s ease;
    }
    
    .form-footer a:active {
        background: rgba(102, 126, 234, 0.2);
    }
    
    /* 极小屏幕特殊处理 */
    @media (max-width: 375px) {
        .login-container {
            min-width: auto;
            width: 100%;
        }
        
        .login-box {
            width: 100%;
            box-sizing: border-box;
            margin: 0 auto;
        }
        
        /* 确保文本不会溢出 */
        .login-header h1,
        .login-header p,
        .form-group label,
        .alert,
        .login-limit-warning,
        .error-count {
            word-wrap: break-word;
            overflow-wrap: break-word;
            hyphens: auto;
        }
        
        /* 优化验证码显示 */
        .captcha-group {
            width: 100%;
        }
        
        .captcha-image,
        .captcha-refresh {
            width: 100%;
            box-sizing: border-box;
        }
        
        /* 确保按钮不会溢出 */
        .btn {
            width: 100%;
            box-sizing: border-box;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }
    
    /* 超极小屏幕处理 */
    @media (max-width: 320px) {
        .login-container {
            padding: 2px;
        }
        
        .login-box {
            margin: 1px;
        }
        
        /* 进一步缩小字体和间距 */
        .login-header h1 {
            font-size: 16px;
        }
        
        .login-header p {
            font-size: 9px;
        }
        
        .form-group label {
            font-size: 9px;
        }
        
        .form-group input,
        .form-group select {
            padding: 8px 6px;
            font-size: 16px;
        }
        
        .btn {
            padding: 8px 10px;
            font-size: 12px;
        }
        
        /* 最小化验证码 */
        .captcha-image {
            height: 35px;
            font-size: 7px;
        }
        
        .captcha-refresh {
            height: 28px;
        }
        
        .captcha-refresh i {
            font-size: 12px;
        }
        
        /* 最小化错误信息 */
        .alert {
            padding: 6px;
            font-size: 9px;
        }
        
        .login-limit-warning {
            padding: 6px;
            font-size: 9px;
        }
        
        .error-count {
            padding: 5px;
            font-size: 8px;
        }
        
        /* 最小化表单切换 */
        .form-footer {
            padding: 6px 0;
        }
        
        .form-footer a {
            font-size: 10px;
            padding: 3px 5px;
        }
        
        /* 最小化复选框 */
        .checkbox-label {
            font-size: 9px;
            padding-left: 20px;
        }
        
        .checkbox-label .checkmark {
            width: 12px;
            height: 12px;
        }
        
        .checkbox-label .checkmark:after {
            left: 3px;
            top: 0px;
            width: 2px;
            height: 5px;
        }
    }
}

/* 高DPI屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .login-box {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }
    
    .form-group input,
    .form-group select {
        border-width: 0.5px;
    }
}

/* 加载动画 */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 密码强度指示器 */
.password-strength {
    margin-top: 5px;
    height: 4px;
    border-radius: 2px;
    background: #eee;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    width: 0;
}

.password-strength-weak {
    background: #dc3545;
    width: 25%;
}

.password-strength-medium {
    background: #ffc107;
    width: 50%;
}

.password-strength-strong {
    background: #28a745;
    width: 75%;
}

.password-strength-very-strong {
    background: #20c997;
    width: 100%;
}

/* 用户类型选择样式 */
.user-type-options {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.user-type-option {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-type-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.user-type-option.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.user-type-option input[type="radio"] {
    display: none;
} 