.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
}

.login-container.hidden {
    display: none;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    margin: 20px;
}

.login-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.form-group input {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    outline: none;
}

.form-group input:focus {
    border-color: #667eea;
}

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

.code-group {
    display: flex;
    gap: 12px;
}

.code-group input {
    flex: 1;
}

.send-code-btn {
    padding: 14px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s;
}

.send-code-btn:hover:not(:disabled) {
    background: #5a6fd6;
}

.send-code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.login-btn {
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.captcha-group input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.captcha-group input:focus {
    border-color: #667eea;
}

.captcha-group canvas {
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

.refresh-captcha-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f5f5f5;
    color: #666;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s;
}

.refresh-captcha-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.dark .captcha-group input {
    background: #2a2a2a;
    border-color: #444;
    color: #eee;
}

.dark .refresh-captcha-btn {
    background: #2a2a2a;
    border-color: #444;
    color: #aaa;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: #999;
    font-size: 12px;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

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

.dev-panel {
    margin-top: 16px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 8px;
}

.dev-panel-title {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.dev-panel textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
    resize: vertical;
}

.dev-login-btn {
    margin-top: 8px;
    width: 100%;
    padding: 8px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

.dev-login-btn:hover {
    background: #5a6268;
}

.dark .login-box {
    background: #1e1e1e;
}

.dark .login-title {
    color: #f0f0f0;
}

.dark .form-group label {
    color: #aaa;
}

.dark .form-group input {
    background: #2d2d2d;
    border-color: #444;
    color: #f0f0f0;
}

.dark .form-group input:focus {
    border-color: #667eea;
}

.dark .error-message {
    color: #ff6b6b;
}
