/* 认证页面通用样式 */
.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 48px;
    max-width: 420px;
    width: 100%;
}

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

.auth-header h1 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.auth-header p {
    color: #888;
    font-size: 15px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

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

.auth-form .form-group input {
    padding: 14px 16px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
}

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

.email-input-wrapper {
    display: flex;
    gap: 12px;
}

.email-input-wrapper input {
    flex: 1;
    min-width: 0;
}

.send-code-btn {
    padding: 14px 20px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

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

.send-code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.password-input {
    position: relative;
}

.password-input input {
    width: 100%;
    padding-right: 60px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.toggle-password:hover {
    color: #667eea;
}

.slide-captcha {
    border: 2px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.captcha-loading {
    padding: 40px;
    text-align: center;
    color: #888;
}

.captcha-container {
    position: relative;
}

.captcha-bg {
    width: 100%;
    display: block;
}

.captcha-block {
    position: absolute;
    left: 0;
    pointer-events: none;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.captcha-slider-wrapper {
    padding: 16px;
    background: white;
}

.captcha-slider {
    position: relative;
    height: 44px;
    background: #f0f0f0;
    border-radius: 8px;
}

.captcha-slider-btn {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    user-select: none;
    transition: box-shadow 0.2s;
}

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

.captcha-slider-btn:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.captcha-slider-hint {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #aaa;
    font-size: 14px;
    pointer-events: none;
}

.captcha-success {
    padding: 24px;
    text-align: center;
    background: #e8f5e9;
    color: #2e7d32;
}

.captcha-success-icon {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

.captcha-refresh {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.remember-me input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.auth-footer p {
    color: #888;
    font-size: 14px;
}

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

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

.auth-message {
    display: none;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.auth-message.is-visible {
    display: block;
}

.auth-message.is-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.auth-message.is-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

@media (max-width: 480px) {
    .auth-page {
        padding: 24px 16px;
        align-items: flex-start;
    }

    .auth-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .auth-header h1 {
        font-size: 26px;
    }

    .email-input-wrapper {
        flex-direction: column;
    }

    .send-code-btn {
        width: 100%;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}
