.change-password-header {
    margin-top: 0;
}

.change-password-section {
    display: flex;
    justify-content: center;
}

.change-password-container {
    width: min(100%, 520px);
}

.change-password-container h3 {
    margin-bottom: 8px;
}

.change-password-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.change-password-form {
    display: grid;
    gap: 16px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    color: #444;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 10px 48px 10px 14px;
    border: 1px solid #cfd6df;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    font-size: 1rem;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.form-group input:focus {
    outline: none;
    border-color: #a31e25;
    box-shadow: 0 0 0 3px rgba(163, 30, 37, 0.1);
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 33px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8a94a3;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: color 0.18s, background 0.18s;
}

.password-toggle:hover,
.password-toggle:focus {
    background: rgba(163, 30, 37, 0.08);
    color: #a31e25;
    outline: none;
}

.password-toggle.is-visible {
    color: #a31e25;
}

.password-match-status {
    min-height: 20px;
    margin-top: 6px;
    font-size: 0.88rem;
    font-weight: 500;
}

.password-match-status.is-match {
    color: #128100;
}

.password-match-status.is-mismatch {
    color: #c00303;
}

.error-message,
.success-message {
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    display: none;
}

.error-message {
    color: #c00303;
    background: #fff3f3;
    border: 1px solid #f199a3;
}

.success-message {
    color: #128100;
    background: #eaffea;
    border: 1px solid #77d486;
}

.submit-btn {
    width: 100%;
    background: #a31e25;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}

.submit-btn:hover,
.submit-btn:focus {
    background: #7c171d;
    box-shadow: 0 8px 18px rgba(163, 30, 37, 0.18);
    transform: translateY(-1px);
    outline: none;
}

@media (max-width: 600px) {
    .change-password-section {
        padding: 16px;
    }
}
