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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
}

.login-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url('zhaopian/beijing.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.login-header {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
}

.login-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 语言选择器样式 */
.language-selector {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
}

.language-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 8px 16px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.language-btn:hover .language-arrow {
    transform: translateY(2px);
}

.language-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    min-width: 160px;
    overflow: hidden;
    z-index: 1000;
}

.language-option {
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    font-size: 14px;
    transition: background 0.2s;
}

.language-option:hover {
    background: #f5f5f5;
}

.language-option:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.language-option:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.language-check {
    color: #007AFF;
    font-weight: 600;
    display: none;
}

.language-check[style*="inline"] {
    display: inline;
}

.login-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 500px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 20px;
}

.login-form {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.form-group label {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color 0.3s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #007AFF;
}

.clear-btn,
.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #999;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: color 0.3s;
}

.clear-btn:hover,
.toggle-password:hover {
    color: #333;
}

.clear-btn {
    font-size: 24px;
    line-height: 1;
}

.eye-icon {
    font-size: 18px;
}

/* 验证码弹窗样式 */
.captcha-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.captcha-modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

.captcha-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.captcha-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.captcha-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s;
}

.captcha-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.captcha-modal-body {
    padding: 24px;
}

.captcha-instruction {
    margin: 0 0 16px 0;
    color: #666;
    font-size: 14px;
    text-align: center;
}

/* 验证码样式 */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.captcha-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.captcha-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.05) 2px,
        rgba(0, 0, 0, 0.05) 4px
    );
    pointer-events: none;
}

.captcha-digit {
    display: inline-block;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    transition: transform 0.2s;
    position: relative;
    z-index: 1;
}

.captcha-digit:hover {
    transform: scale(1.1);
}

.refresh-captcha {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.refresh-captcha:hover {
    background: #e0e0e0;
    border-color: #007AFF;
    transform: rotate(180deg);
}

.refresh-captcha:active {
    transform: rotate(180deg) scale(0.95);
}

.captcha-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    justify-content: flex-end;
}

.captcha-btn-cancel,
.captcha-btn-confirm {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.captcha-btn-cancel {
    background: #f0f0f0;
    color: #666;
}

.captcha-btn-cancel:hover {
    background: #e0e0e0;
}

.captcha-btn-confirm {
    background: #007AFF;
    color: #ffffff;
}

.captcha-btn-confirm:hover {
    background: #0056CC;
}

.captcha-btn-confirm:active {
    background: #004499;
}

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

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

.form-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 13px;
}

.register-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.register-link:hover {
    color: #333;
}

.register-text {
    color: #007AFF;
    font-weight: 500;
}

.forgot-password {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #666;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #007AFF;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #0056CC;
}

.login-btn:active {
    background: #004499;
}

.support-icon {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
}

.support-btn {
    width: 50px;
    height: 50px;
    background: #007AFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.support-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.6);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-content {
        padding: 20px;
        max-width: 90%;
    }
    
    .login-form {
        padding: 30px 20px;
    }
    
    .form-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .logo {
        width: 80px;
        height: 80px;
        border-radius: 16px;
    }
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast-notification.toast-success {
    background: #27ae60;
}

.toast-notification.toast-error {
    background: #e74c3c;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-icon {
    font-size: 18px;
    font-weight: bold;
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .toast-notification {
        top: 60px;
        left: 20px;
        right: 20px;
        transform: translateY(-100px);
    }
    
    .toast-notification.show {
        transform: translateY(0);
    }
}

