body {
    background: linear-gradient(135deg, #e8f6ef 0%, #d4fc79 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
}
.container-password-reset {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.password-reset-card {
    display: flex;
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    overflow: hidden;
    width: 800px;
    max-width: 98vw;
    min-height: 400px;
}
.password-reset-left {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    min-height: 400px;
    padding: 2rem 1rem;
}
.password-reset-illustration {
    max-width: 90%;
    max-height: 260px;
    object-fit: contain;
}
.password-reset-right {
    width: 50%;
    padding: 2.5rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.password-reset-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a3c1a;
    margin-bottom: 2rem;
    line-height: 1.2;
}
.password-reset-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.password-reset-input {
    padding: 1rem 1.2rem;
    border-radius: 1.2rem;
    border: 1.5px solid #b2e2b2;
    font-size: 1.1rem;
    background: #f8fff8;
    transition: border-color 0.2s;
}
.password-reset-input:focus {
    border-color: #4ecb71;
    outline: none;
    background: #f2fff2;
}
.password-reset-btn {
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
    color: #fff;
    border: none;
    border-radius: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.9rem 0;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(67,233,123,0.10);
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}
.password-reset-btn:hover {
    box-shadow: 0 4px 16px rgba(67,233,123,0.18);
    transform: translateY(-2px) scale(1.03);
}
.password-reset-success {
    margin-top: 1rem;
    color: #2e7d32;
    background: #e8f5e9;
    border-radius: 0.8rem;
    padding: 0.7rem 1rem;
    text-align: center;
    font-size: 1rem;
}
.password-reset-back {
    display: block;
    margin-top: 2rem;
    color: #7abf7a;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}
.password-reset-back:hover {
    color: #43e97b;
    text-decoration: underline;
}
.invalid-feedback {
    color: #d32f2f;
    font-size: 0.95rem;
    margin-top: 0.2rem;
    margin-bottom: -0.7rem;
}
.toggle-password {
    background: none;
    border: none;
    color: #3EA055;
    font-weight: 600;
    margin-left: 0.5rem;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
}
.toggle-password:focus {
    outline: none;
}

/* Wrapper that expands when focused */
.password-field {
    width: 100%;
    margin-bottom: 1rem;
}
/* Normalized rules container below input */
.password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-top: 0.5rem;
}
/* Expand container on focus */
.password-field.focused .password-rules {
    max-height: 200px; /* sufficiently large */
}
.rule {
    flex: 1 1 calc(33% - 0.5rem);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: #f8d7da;
    color: #721c24;
    font-size: 0.875rem;
    text-align: center;
    transition: background 0.3s ease, color 0.3s ease;
}
.rule.valid {
    background: #d4edda;
    color: #155724;
}
@media (max-width: 900px) {
    .password-reset-card {
        flex-direction: column;
        width: 98vw;
        min-height: unset;
    }
    .password-reset-left, .password-reset-right {
        width: 100%;
        min-height: 180px;
        padding: 2rem 1rem;
    }
    .password-reset-title {
        font-size: 1.6rem;
    }
} 