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

html, body {
    height: 100%;
    min-height: 100vh;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f6fa;
    padding: 20px;
}

.findpwd-container {
    display: flex !important;
    flex-direction: row !important;
    width: 100%;
    max-width: 900px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.findpwd-visual {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.findpwd-visual::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -50px;
    left: -50px;
}

.findpwd-visual::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -30px;
    right: -30px;
}

.findpwd-image {
    width: 100%;
    max-width: 380px;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.findpwd-form-section {
    flex: 1.2;
    padding: 50px 45px;
}

.findpwd-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 12px;
    margin: -50px -45px 35px -45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.findpwd-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.findpwd-header .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.findpwd-header .close-btn:hover {
    opacity: 1;
}

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

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-control::placeholder {
    color: #aaa;
}

.form-text {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

.mb-3 {
    margin-bottom: 20px;
}

.btn {
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-outline-secondary {
    background: white;
    color: #666;
    border: 2px solid #e8e8e8;
}

.btn-outline-secondary:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

.btn-success {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.w-100 {
    width: 100%;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group .form-control {
    flex: 1;
}

.text-danger {
    color: #dc3545;
}

.text-primary {
    color: #667eea;
}

.font-weight-bold {
    font-weight: 600;
}

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 12px;
}

.alert-info {
    background-color: #e7f3ff;
    color: #0c63e4;
    border: 1px solid #b6d4fe;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.text-center {
    text-align: center;
}

.text-warning {
    color: #f59e0b;
}

.text-info {
    color: #0891b2;
}

.switch-text {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.switch-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.switch-text a:hover {
    text-decoration: underline;
}

.slider-captcha-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.slider-captcha-overlay.show {
    display: flex;
}

.slider-captcha-modal {
    background: white;
    border-radius: 116px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 380px;
    width: 90%;
}

.slider-captcha-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.slider-captcha-close {
    cursor: pointer;
    font-size: 24px;
    color: #999;
    line-height: 1;
}

.slider-captcha-close:hover {
    color: #666;
}

.slider-captcha-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 18px;
    background: #e8e8e8;
}

.slider-captcha-background {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.slider-captcha-puzzle {
    position: absolute;
    top: 55px;
    left: 0;
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.slider-captcha-track {
    position: relative;
    height: 44px;
    background: #f5f5f5;
    border-radius: 22px;
    overflow: hidden;
}

.slider-captcha-track::before {
    content: '向右拖动滑块填充拼图';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #999;
}

.slider-captcha-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0;
}

.slider-captcha-handle {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 54px;
    height: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    touch-action: none;
    -webkit-touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.slider-captcha-handle::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-right: 2px solid #667eea;
    border-bottom: 2px solid #667eea;
    transform: rotate(-45deg);
}

.slider-captcha-refresh {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.slider-captcha-refresh:hover {
    transform: rotate(180deg);
}

.slider-captcha-refresh::after {
    content: '\27f3';
    font-size: 18px;
    color: #667eea;
}

#sliderCaptchaMessage {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
}

.slider-captcha-success {
    color: #20c997;
}

.slider-captcha-error {
    color: #dc3545;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    z-index: 10001;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    background: linear-gradient(135deg, #20c997, #17a2b8);
}

.toast.error {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
}

@media (max-width: 768px) {
    .findpwd-container {
        flex-direction: column !important;
        max-width: 450px;
    }
    
    .findpwd-visual {
        padding: 40px 30px;
    }
    
    .findpwd-image {
        max-width: 200px;
    }
    
    .findpwd-form-section {
        padding: 40px 30px;
    }
    
    .findpwd-header {
        margin: -40px -30px 30px -30px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .findpwd-visual {
        padding: 30px 20px;
    }
    
    .findpwd-form-section {
        padding: 30px 20px;
    }
    
    .findpwd-header {
        margin: -30px -20px 25px -20px;
    }
    
    .findpwd-header h3 {
        font-size: 18px;
    }
}
