/* Change Password Page Styles - Professional Modern Soft Design with Color Variables */

/* Change Password Container */
.change-password--container {
    min-height: 50vh;
    padding: 20px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(248, 249, 250, 0.8) 0%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(248, 249, 250, 0.8) 100%
    );
}

.change-password--container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.02) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.change-password--wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Change Password Card */
.change-password--card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 32px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 4px 16px rgba(0, 0, 0, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    max-width: 520px;
    width: 100%;
    margin: 0 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: relative;
}

/* Change Password Header */
.change-password--header {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(248, 249, 250, 0.95) 100%
    );
    padding: 28px 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.change-password--header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.02) 0%,
        transparent 30%,
        transparent 70%,
        rgba(212, 175, 55, 0.03) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.change-password--header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.2) 50%,
        transparent 100%
    );
}

.change-password--header-content {
    position: relative;
    z-index: 2;
}

.change-password--title {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.change-password--subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    letter-spacing: 0.005em;
    opacity: 0.8;
}

/* Change Password Body */
.change-password--body {
    padding: 44px 40px 48px;
    background: rgba(255, 255, 255, 0.98);
    position: relative;
}

/* Change Password Form */
.change-password--form {
    position: relative;
}

.change-password--form-group {
    margin-bottom: 28px;
    position: relative;
}

.change-password--form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    letter-spacing: 0.005em;
    opacity: 0.9;
}

.change-password--form-input {
    width: 100%;
    padding: 18px 24px;
    border: 1px solid rgba(233, 236, 239, 0.8);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    outline: none;
    position: relative;
    z-index: 2;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.02),
        0 1px 4px rgba(0, 0, 0, 0.03);
}

.change-password--form-input::placeholder {
    color: var(--input-placeholder);
    font-weight: 400;
    opacity: 0.7;
}

.change-password--form-input:focus {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 
        0 0 0 4px rgba(212, 175, 55, 0.08),
        0 6px 20px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px) scale(1.005);
    background: var(--pure-white);
}

.change-password--form-input:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.03),
        0 2px 6px rgba(0, 0, 0, 0.02);
    transform: translateY(-0.5px);
}

/* Password Field */
.change-password--password-wrapper {
    position: relative;
}

.change-password--password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--light-gray);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.change-password--password-toggle:hover {
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.06);
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}

/* Password Strength Indicator */
.change-password--password-strength {
    margin-top: 12px;
    padding: 0 4px;
}

.change-password--strength-bar {
    height: 6px;
    background: var(--lightest-gray);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}

.change-password--strength-fill {
    height: 100%;
    width: 20%;
    background: var(--error-red);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.change-password--strength-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: strengthShine 2s ease-in-out infinite;
}

@keyframes strengthShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.change-password--strength-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
}

/* Password strength levels */
.change-password--strength-fill.weak {
    width: 25%;
    background: var(--error-red);
}

.change-password--strength-fill.medium {
    width: 50%;
    background: var(--warning-orange);
}

.change-password--strength-fill.strong {
    width: 75%;
    background: var(--info-blue);
}

.change-password--strength-fill.very-strong {
    width: 100%;
    background: var(--success-green);
}

/* Password Match Indicator */
.change-password--match-indicator {
    margin-top: 10px;
    padding: 0 4px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.change-password--match-indicator.show {
    opacity: 1;
}

.change-password--match-indicator.match {
    color: var(--success-green);
}

.change-password--match-indicator.no-match {
    color: var(--error-red);
}

.change-password--match-indicator::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.change-password--match-indicator.match::before {
    content: '\f058'; /* fa-check-circle */
}

.change-password--match-indicator.no-match::before {
    content: '\f057'; /* fa-times-circle */
}

/* Security Tips */
.change-password--security-tips {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.02),
        0 1px 4px rgba(0, 0, 0, 0.03);
}

.change-password--tips-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.change-password--tips-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 6px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    position: relative;
    padding-left: 20px;
}

.change-password--tips-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Change Password Button */
.change-password--submit-btn {
    width: 100%;
    padding: 16px 25px;
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.95) 0%,
        var(--accent-gold) 50%,
        rgba(212, 175, 55, 0.9) 100%
    );
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    box-shadow: 
        0 8px 24px rgba(212, 175, 55, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.3) inset;
    letter-spacing: 0.005em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.change-password--submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.change-password--submit-btn:hover::before {
    left: 100%;
}

.change-password--submit-btn:hover {
    background: linear-gradient(
        135deg,
        rgba(244, 208, 63, 0.98) 0%,
        #e6c547 50%,
        rgba(212, 175, 55, 0.95) 100%
    );
    transform: translateY(-1px) scale(1.005);
    box-shadow: 
        0 12px 32px rgba(212, 175, 55, 0.3),
        0 6px 16px rgba(0, 0, 0, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.change-password--submit-btn:active {
    transform: translateY(0) scale(0.998);
    transition: all 0.1s ease;
}

.change-password--submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Back Link */
.change-password--back {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(233, 236, 239, 0.5);
}

.change-password--back-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    opacity: 0.9;
}

.change-password--back-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.change-password--back-link:hover {
    color: var(--btn-secondary-hover);
    text-decoration: none;
    opacity: 1;
    transform: translateY(-1px);
}

/* Loading State */
.change-password--form.loading {
    opacity: 0.7;
    pointer-events: none;
}

.change-password--submit-btn.loading {
    position: relative;
}

.change-password--submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-black);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: changePasswordSpin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes changePasswordSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Error States */
.change-password--form-group.error .change-password--form-input {
    border-color: var(--error-red);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

.change-password--error-message {
    color: var(--error-red);
    font-size: 0.8rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.change-password--error-message i {
    font-size: 0.7rem;
}

/* Success States */
.change-password--form-group.success .change-password--form-input {
    border-color: var(--success-green);
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.15);
}

/* Error State Styles */
.change-password--error {
    text-align: center;
    padding: 20px 0;
}

.change-password--error-icon {
    margin-bottom: 20px;
}

.change-password--error-icon i {
    font-size: 4rem;
    color: var(--error-red);
    opacity: 0.8;
}

.change-password--error-content {
    max-width: 400px;
    margin: 0 auto;
}

.change-password--error-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
}

.change-password--error-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.change-password--error-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.95) 0%,
        var(--accent-gold) 50%,
        rgba(212, 175, 55, 0.9) 100%
    );
    border: none;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 8px 24px rgba(212, 175, 55, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.3) inset;
    letter-spacing: 0.005em;
    position: relative;
    overflow: hidden;
}

.change-password--error-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.change-password--error-btn:hover::before {
    left: 100%;
}

.change-password--error-btn:hover {
    background: linear-gradient(
        135deg,
        rgba(244, 208, 63, 0.98) 0%,
        #e6c547 50%,
        rgba(212, 175, 55, 0.95) 100%
    );
    transform: translateY(-1px) scale(1.005);
    box-shadow: 
        0 12px 32px rgba(212, 175, 55, 0.3),
        0 6px 16px rgba(0, 0, 0, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.change-password--error-btn:active {
    transform: translateY(0) scale(0.998);
    transition: all 0.1s ease;
}

/* Animation for change password card */
.change-password--card {
    animation: changePasswordFadeInUp 0.8s ease-out;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .change-password--container {
        padding: 40px 0;
    }
    
    .change-password--wrapper {
        min-height: calc(100vh - 80px);
        align-items: flex-start;
        padding-top: 40px;
    }
    
    .change-password--card {
        margin: 0 15px;
        border-radius: 20px;
    }
    
    .change-password--header {
        padding: 35px 25px;
    }
    
    .change-password--title {
        font-size: 1.8rem;
        letter-spacing: 0.8px;
    }
    
    .change-password--subtitle {
        font-size: 0.9rem;
    }
    
    .change-password--body {
        padding: 35px 25px;
    }
    
    .change-password--form-input {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
    
    .change-password--submit-btn {
        padding: 16px 25px;
        font-size: 1rem;
    }
    
    .change-password--security-tips {
        padding: 20px;
    }
    
    .change-password--error-actions {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .change-password--container {
        padding: 30px 0;
    }
    
    .change-password--wrapper {
        min-height: calc(60vh - 60px);
        padding-top: 10px;
    }
    
    .change-password--card {
        margin: 0 10px;
        border-radius: 18px;
    }
    
    .change-password--header {
        padding: 30px 20px;
    }
    
    .change-password--title {
        font-size: 1.6rem;
        letter-spacing: 0.6px;
        margin-bottom: 6px;
    }
    
    .change-password--subtitle {
        font-size: 0.85rem;
    }
    
    .change-password--body {
        padding: 30px 20px;
    }
    
    .change-password--form-group {
        margin-bottom: 20px;
    }
    
    .change-password--form-label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .change-password--form-input {
        padding: 12px 16px;
        font-size: 0.9rem;
        border-radius: 12px;
    }
    
    .change-password--submit-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
        border-radius: 12px;
    }
    
    .change-password--security-tips {
        padding: 18px;
        border-radius: 12px;
    }
    
    .change-password--tips-title {
        font-size: 0.9rem;
    }
    
    .change-password--tips-list li {
        font-size: 0.8rem;
    }
    
    .change-password--back {
        padding-top: 20px;
    }
    
    .change-password--back-text {
        font-size: 0.9rem;
    }
    
    .change-password--error-icon i {
        font-size: 3rem;
    }
    
    .change-password--error-content p {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }
    
    .change-password--error-btn {
        padding: 14px 20px;
        font-size: 0.9rem;
        border-radius: 12px;
    }
}

/* Focus styles for accessibility */
.change-password--form-input:focus,
.change-password--submit-btn:focus,
.change-password--error-btn:focus,
.change-password--back-link:focus {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .change-password--card {
        border: 3px solid var(--primary-black);
    }
    
    .change-password--form-input {
        border-width: 3px;
    }
    
    .change-password--submit-btn,
    .change-password--error-btn {
        border: 3px solid var(--primary-black);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .change-password--card,
    .change-password--submit-btn,
    .change-password--form-input,
    .change-password--strength-fill::after,
    .change-password--error-btn {
        animation: none;
        transition: none;
    }
    
    .change-password--card:hover {
        transform: none;
    }
    
    .change-password--submit-btn:hover,
    .change-password--error-btn:hover {
        transform: none;
    }
}