/* ==========================================================================
   CHANGE PASSWORD PAGE STYLES (Women Accessories)
   File: public/assets/css/change_password.css
   ========================================================================== */

/* Breadcrumb Bar (#f8f8f8) */
.password-breadcrumb-bar {
    width: 100%;
    background-color: #f8f8f8;
    padding-top: clamp(1.4rem, 1.6vw, 2.0rem);
    padding-bottom: clamp(1.4rem, 1.6vw, 2.0rem);
    border-bottom: 1px solid #f0f0f0;
}

.password-breadcrumb-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: clamp(2.4rem, 4.8vw, 7.8rem);
    padding-right: clamp(2.4rem, 4.8vw, 7.8rem);
}

.password-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.2rem, 0.95vw, 1.35rem);
    color: #595959;
    line-height: 1;
    margin: 0;
}

.password-breadcrumb-link {
    color: #595959;
    text-decoration: none;
    transition: color 0.2s ease;
}

.password-breadcrumb-link:hover {
    color: #111111;
    text-decoration: none;
}

.password-breadcrumb-sep {
    color: #777777;
    margin: 0 0.2rem;
}

.password-breadcrumb-badge {
    background-color: #ff97aa;
    color: #111111;
    font-weight: 500;
    font-size: clamp(1.15rem, 0.9vw, 1.25rem);
    padding: 0.45rem 1.4rem;
    border-radius: 5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.2rem 0.6rem rgba(255, 151, 170, 0.25);
}

/* ==========================================================================
   MAIN PASSWORD SECTION
   ========================================================================== */

.password-main-section {
    background-color: #ffffff;
    padding-top: clamp(3.6rem, 4.8vw, 6.4rem);
    padding-bottom: clamp(8.0rem, 12.0vw, 18.0rem);
    width: 100%;
    min-height: 65vh;
}

.password-main-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: clamp(2.4rem, 4.8vw, 7.8rem);
    padding-right: clamp(2.4rem, 4.8vw, 7.8rem);
}

/* Header Row: Title & UPDATE Button */
.password-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.0rem;
    margin-bottom: clamp(3.2rem, 4.0vw, 5.2rem);
}

.password-page-title {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(3.2rem, 3.8vw, 4.8rem);
    font-weight: 500;
    color: #111111;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* UPDATE Button (Cyan) */
.btn-password-update {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background-color: #35f3ff;
    color: #000000;
    border: none;
    border-radius: 5rem;
    padding: 0.9rem 2.6rem;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.2rem, 0.92vw, 1.3rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    box-shadow: 0 0.2rem 0.6rem rgba(53, 243, 255, 0.25);
}

.btn-password-update .btn-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 1.1em;
    line-height: 1;
}

.btn-password-update:hover {
    background-color: #21e2ee;
    color: #000000;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 0.4rem 1.4rem rgba(53, 243, 255, 0.45);
}

.btn-password-update:hover .btn-arrow {
    transform: translate(2px, -2px);
}

/* ==========================================================================
   PASSWORD FORM & INPUTS
   ========================================================================== */

.password-form-wrap {
    width: 100%;
    max-width: clamp(32rem, 34vw, 44rem);
}

.password-field-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 2.4rem;
}

.password-field-label {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.15rem, 0.9vw, 1.25rem);
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.0rem;
    line-height: 1.2;
}

/* Rounded Pill Input Wrapper */
.password-input-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 5rem;
    padding: 0.4rem 1.6rem 0.4rem 2.4rem;
    height: clamp(4.6rem, 4.4vw, 5.2rem);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-input-box:focus-within {
    border-color: #111111;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.password-input-box.has-error {
    border-color: #ef4444;
}

.password-input-control {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.4rem, 1.1vw, 1.55rem);
    color: #111111;
    letter-spacing: 0.08em;
}

.password-input-control::placeholder {
    color: #9ca3af;
    letter-spacing: normal;
}

.password-eye-toggle {
    background: transparent;
    border: none;
    color: #111111;
    font-size: 1.9rem;
    line-height: 1;
    padding: 0.4rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.password-eye-toggle:hover {
    color: #374151;
    transform: scale(1.05);
}

/* Alert Notification */
.password-alert-banner {
    display: none;
    padding: 1.4rem 2.0rem;
    border-radius: 1.6rem;
    font-family: 'Urbanist', sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 2.4rem;
    align-items: center;
    gap: 1.0rem;
    transition: all 0.3s ease;
}

.password-alert-banner.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: flex;
}

.password-alert-banner.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: flex;
}

/* New Password Section (expandable on click UPDATE) */
.new-password-fields-wrap {
    display: none;
    animation: fadeInSlide 0.3s ease forwards;
}

.new-password-fields-wrap.is-visible {
    display: block;
}

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

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 767px) {
    .password-form-wrap {
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .password-main-container,
    .password-breadcrumb-container {
        padding-left: 1.6rem;
        padding-right: 1.6rem;
    }

    .password-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.6rem;
    }

    .btn-password-update {
        width: 100%;
        max-width: 32rem;
        padding: 0.9rem 2.0rem;
    }
}
