/* ===== Change Password Modal ===== */
.chgpwd-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.chgpwd-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    max-width: 460px;
    width: 90%;
    overflow: hidden;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg), 0 0 80px rgba(0, 0, 0, 0.2);
}

.chgpwd-header {
    background: linear-gradient(135deg, rgba(240, 116, 0, 0.9), rgba(0, 180, 255, 0.9));
    padding: 30px 32px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.chgpwd-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 80% at 80% 20%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(ellipse 60% 50% at 10% 80%, rgba(255, 255, 255, 0.05), transparent);
}

.chgpwd-header-decoration {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.chgpwd-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    position: relative;
}

.chgpwd-header p {
    font-size: 13px;
    opacity: 0.85;
    position: relative;
}

.chgpwd-body {
    padding: 28px 32px;
}

.chgpwd-field {
    margin-bottom: 18px;
}

.chgpwd-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

/* Gradient Divider */
.chgpwd-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #F07400, #00b4ff, transparent);
    margin-bottom: 18px;
}

/* Strength Bar */
.strength-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.strength-bar {
    flex: 1;
    height: 5px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease, background 0.4s ease;
}

.strength-label {
    font-size: 11px;
    font-weight: 700;
    min-width: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Requirements List */
.pwd-requirements {
    list-style: none;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
}

.pwd-requirements li {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.pwd-requirements li.met {
    color: var(--success-color);
}

.pwd-requirements .req-icon {
    font-size: 13px;
    width: 16px;
    text-align: center;
    transition: transform 0.3s;
}

.pwd-requirements li.met .req-icon {
    transform: scale(1.2);
}

.chgpwd-error {
    color: var(--error-color);
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
    padding: 10px;
    background: rgba(255, 61, 113, 0.06);
    border-radius: 8px;
    border: 1px solid rgba(255, 61, 113, 0.15);
}

.chgpwd-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.chgpwd-buttons .btn-primary,
.chgpwd-buttons .btn-secondary {
    padding: 12px 28px;
    font-size: 14px;
}

.chgpwd-buttons .btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
