/* ===================== PAGE LAYOUT ===================== */
.change-password-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.change-password-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 700px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideInFromBottom 0.8s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===================== PAGE HEADER ===================== */
.page-header {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    animation: fadeInDown 1s ease 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.page-header p {
    color: #666;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
}

/* ===================== FORM SECTIONS ===================== */
.form-section {
    margin-bottom: 35px;
    animation: fadeInUp 0.8s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

.form-section:nth-child(1) { animation-delay: 0.4s; }
.form-section:nth-child(2) { animation-delay: 0.5s; }
.form-section:nth-child(3) { animation-delay: 0.6s; }

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

.form-section h2 {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #21a300;
}

/* ===================== FORM GROUPS ===================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

/* ===================== PASSWORD INPUT ===================== */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.password-input-wrapper input:focus {
    outline: none;
    border-color: #21a300;
    background: white;
    box-shadow: 0 0 0 4px rgba(33, 163, 0, 0.1);
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 5px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #21a300;
}

/* ===================== PASSWORD STRENGTH ===================== */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.password-strength.strength-weak .strength-bar-fill {
    width: 33%;
    background: linear-gradient(90deg, #dc3545, #ff6b6b);
}

.password-strength.strength-medium .strength-bar-fill {
    width: 66%;
    background: linear-gradient(90deg, #ffc107, #ffdd57);
}

.password-strength.strength-strong .strength-bar-fill {
    width: 100%;
    background: linear-gradient(90deg, #28a745, #51cf66);
}

#strengthText {
    font-size: 13px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

/* ===================== INFO SECTION ===================== */
.info-section {
    background: rgba(33, 163, 0, 0.05);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(33, 163, 0, 0.2);
}

.password-rules {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-rules li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    margin-bottom: 8px;
    background: white;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.rule-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 16px;
    color: #999;
    transition: all 0.3s ease;
}

.password-rules li.valid {
    color: #28a745;
    border-left: 3px solid #28a745;
}

.password-rules li.valid .rule-icon {
    color: #28a745;
}

.password-rules li.valid .rule-icon::before {
    content: '✓';
}

/* ===================== MESSAGES ===================== */
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin: 20px 0;
    padding: 12px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 6px;
    border-left: 4px solid #dc3545;
    display: none;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.success-message {
    color: #28a745;
    font-size: 14px;
    margin: 20px 0;
    padding: 12px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 6px;
    border-left: 4px solid #28a745;
    display: none;
    animation: slideInFromRight 0.5s ease;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================== FORM ACTIONS ===================== */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    animation: fadeInUp 0.8s ease 0.7s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.form-actions .btn {
    padding: 12px 30px;
    font-size: 15px;
}

/* ===================== RESPONSIVE DESIGN ===================== */
@media (max-width: 768px) {
    .change-password-container {
        padding: 30px 20px;
        margin: 20px;
    }

    .page-header h1 {
        font-size: 26px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .password-rules li {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .change-password-page {
        padding: 20px 10px;
    }

    .change-password-container {
        padding: 25px 15px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .form-section h2 {
        font-size: 18px;
    }
}