:root {
    --primary: #15336e;
    --secondary: #866a2d;
    --accent: #f7b733;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --transition: all 0.3s ease;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f6f7 0%, #eef1f5 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    width: 100%;
}

.reset-container {
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.banner {
    flex: 1;
    background: linear-gradient(to right, var(--primary), #2a5298);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover;
    opacity: 0.2;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: white;
}

.banner h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 15px;
    line-height: 1.8;
}

.features {
    margin-top: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.feature i {
    font-size: 1.5rem;
    color: var(--accent);
}

.feature span {
    font-size: 1.05rem;
}

.reset-form {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

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

.form-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--gray);
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 40px;
}

.steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--light-gray);
    z-index: 1;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.step.active {
    background: var(--primary);
    color: white;
}

.step.completed {
    background: var(--secondary);
    color: white;
}

.step-label {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.9rem;
    color: var(--gray);
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.form-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-section.active {
    display: block;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.input-with-icon input {
    padding-left: 45px;
}

input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(134, 106, 45, 0.2);
}

.captcha-row {
    display: flex;
    gap: 15px;
}

.captcha-input {
    flex: 1;
}

.captcha-img {
    width: 120px;
    height: 50px;
    background: var(--light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    cursor: pointer;
    user-select: none;
}

.sms-row {
    display: flex;
    gap: 15px;
}

.sms-input {
    flex: 1;
}

.sms-btn {
    width: 140px;
    background: var(--light);
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.sms-btn:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.password-strength {
    height: 5px;
    background: var(--light-gray);
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
}

.strength-meter {
    height: 100%;
    width: 0;
    background: #e74c3c;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.password-rules {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--gray);
}

.password-rules ul {
    padding-left: 20px;
    margin-top: 5px;
}

.password-rules li {
    margin-bottom: 3px;
}

.password-rules .valid {
    color: #27ae60;
}

.submit-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.back-btn {
    background: transparent;
    color: var(--gray);
    border: none;
    padding: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.back-btn:hover {
    color: var(--primary);
}

.success-message {
    text-align: center;
    padding: 30px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(39, 174, 96, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.success-icon i {
    font-size: 2.5rem;
    color: #27ae60;
}

.login-link {
    text-align: center;
    margin-top: 25px;
    color: var(--gray);
}

.login-link a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
}

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

.form-note {
    background: var(--light);
    border-left: 4px solid var(--secondary);
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--gray);
}

@media (max-width: 992px) {
    .reset-container {
        flex-direction: column;
    }

    .banner {
        padding: 40px 30px;
    }

    .reset-form {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .captcha-row, .sms-row {
        flex-direction: column;
    }

    .captcha-img, .sms-btn {
        width: 100%;
    }

    .steps {
        margin-bottom: 60px;
    }

    .step-label {
        top: 45px;
    }
}
