.center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px; /* prevent overflow on smaller screens */

}


.container-change-pass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.6s ease-out;
    text-align: center;

}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.security-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.header-change-login {
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

#header-login-text {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 500;
    animation: fadeIn 0.5s ease-out;
}

.alert-danger {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    color: #c53030;
    border: 1px solid #fc8181;
}

.alert-success {
    background: linear-gradient(135deg, #c6f6d5, #9ae6b4);
    color: #2f855a;
    border: 1px solid #68d391;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.change-password-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.form-group-change-pass {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-change-pass label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
    margin-left: 4px;
}

.form-group-change-pass input {
    padding: 15px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #2d3748;
}

.form-group-change-pass input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group-change-pass input:hover {
    border-color: #cbd5e0;
    background: white;
}

.form-group-change-pass input:valid {
    border-color: #68d391;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-submit, .btn-cancel {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-cancel {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-cancel:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.security-note {
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
    border: 1px solid #fc8181;
    border-radius: 12px;
    padding: 12px;
    margin-top: 20px;
    color: #c53030;
    font-size: 0.8rem;
    text-align: center;
}

.security-note::before {
    content: "⚠️";
    margin-right: 8px;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.75rem;
    color: #718096;
}

.trust-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
}

.trust-indicator::before {
    width: 8px;
    height: 8px;
    background: #68d391;
    border-radius: 50%;
    content: "";
}

@media (max-width: 600px) {
    .container {
        padding: 30px 25px;
        margin: 10px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .form-buttons {
        flex-direction: column;
    }

    .btn-submit, .btn-cancel {
        flex: none;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 8px;
    }
}

/* Loading state for submit button */
.btn-submit.loading {
    background: linear-gradient(135deg, #a0aec0, #718096);
    cursor: not-allowed;
}

.btn-submit.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Input shake animation for errors */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.container-credentials {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header-card-credentials {
    text-align: center;
    margin-bottom: 30px;
}

.form-header-card-credentials h1 {
    color: #2d3748;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header-card-credentials p {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 500;
    animation: fadeIn 0.5s ease-out;
}

.alert-danger {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    color: #c53030;
    border: 1px solid #fc8181;
}

.alert-success {
    background: linear-gradient(135deg, #c6f6d5, #9ae6b4);
    color: #2f855a;
    border: 1px solid #68d391;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.change-password-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-credentials {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-credentials label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
    margin-left: 4px;
}

.form-group-credentials input {
    padding: 15px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #2d3748;
}

.form-group-credentials input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group-credentials input:hover {
    border-color: #cbd5e0;
    background: white;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-submit, .btn-cancel {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-cancel {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-cancel:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.security-note {
    background: linear-gradient(135deg, #ebf8ff, #bee3f8);
    border: 1px solid #90cdf4;
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
    color: #2c5ea7;
    font-size: 0.85rem;
    text-align: center;
}

.security-note::before {
    content: "🔒";
    margin-right: 8px;
}

@media (max-width: 600px) {
    .container {
        padding: 30px 25px;
        margin: 10px;
    }

    .form-header-card-credentials h1 {
        font-size: 1.7rem;
    }

    .form-buttons {
        flex-direction: column;
    }

    .btn-submit, .btn-cancel {
        flex: none;
    }
}

/* Input validation states */
.form-group-credentials input:invalid {
    border-color: #fc8181;
}

.form-group-credentials input:valid {
    border-color: #68d391;
}

/* Loading state for submit button */
.btn-submit.loading {
    background: linear-gradient(135deg, #a0aec0, #718096);
    cursor: not-allowed;
}

.btn-submit.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.credentials-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px; /* prevent overflow on smaller screens */
}