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

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.forget-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.forget-header {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.forget-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.forget-header p {
    opacity: 0.9;
    font-size: 14px;
}

.back-btn {
    position: absolute;
    left: 20px;
    top: 20px;
    color: white;
    text-decoration: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
}

.forget-body {
    padding: 30px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e4e7ed;
    color: #909399;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    position: relative;
}

.step.active {
    background: #11998e;
    color: white;
}

.step.completed {
    background: #67c23a;
    color: white;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: #e4e7ed;
}

.step.completed:not(:last-child)::after {
    background: #67c23a;
}

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

.captcha-canvas {
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    cursor: pointer;
    background: #f5f7fa;
}

.captcha-refresh {
    color: #11998e;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s;
}

.captcha-refresh:hover {
    background: #f0f9ff;
    transform: rotate(90deg);
}

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

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #11998e;
    box-shadow: 0 0 0 2px rgba(17, 153, 142, 0.1);
}

.form-control.is-error {
    border-color: #f56c6c;
}

.form-control.is-error:focus {
    box-shadow: 0 0 0 2px rgba(245, 108, 108, 0.1);
}

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

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

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.btn-primary:hover {
    opacity: 0.9;
}

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

.btn-code {
    background: #11998e;
    color: white;
    white-space: nowrap;
    min-width: 100px;
}

.btn-code:disabled {
    background: #c0c4cc;
}

.error-message {
    color: #f56c6c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.toast.show {
    opacity: 1;
}

.toast.success {
    background: #67c23a;
}

.toast.error {
    background: #f56c6c;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.password-strength {
    margin-top: 8px;
    font-size: 12px;
}

.strength-bar {
    height: 4px;
    background: #e4e7ed;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 5px;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s;
}

.strength-fill.weak {
    width: 33%;
    background: #f56c6c;
}

.strength-fill.medium {
    width: 66%;
    background: #e6a23c;
}

.strength-fill.strong {
    width: 100%;
    background: #67c23a;
}

.success-icon {
    text-align: center;
    padding: 40px 20px;
}

.success-icon .icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.success-icon h3 {
    color: #303133;
    margin-bottom: 10px;
}

.success-icon p {
    color: #606266;
    font-size: 14px;
}

@media (max-width: 480px) {
    .forget-container {
        margin: 0;
        border-radius: 0;
    }

    .forget-header {
        padding: 30px 20px;
    }

    .forget-body {
        padding: 20px;
    }
}
