/* ==========================================================================
   UPDATE PASSWORD PAGE STYLES (Women Accessories)
   File: public/assets/css/update_password.css
   Strict adherence to 1rem = 10px, Urbanist font, mobile responsive
   ========================================================================== */

/* Breadcrumb Bar (#f8f8f8) */
.update-pw-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;
}

.update-pw-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);
}

.update-pw-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;
    flex-wrap: wrap;
}

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

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

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

.update-pw-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 UPDATE PASSWORD SECTION
   ========================================================================== */

.update-pw-main-section {
    background-color: #ffffff;
    padding-top: clamp(3.2rem, 4.2vw, 5.6rem);
    padding-bottom: clamp(6.4rem, 8.8vw, 12.0rem);
    width: 100%;
}

.update-pw-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);
}

/* Top Navigation: < BACK & Centered Title */
.update-pw-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: clamp(4.0rem, 5.6vw, 7.2rem);
}

.update-pw-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.3rem, 1.0vw, 1.45rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #111111;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.update-pw-back-link:hover {
    color: #000000;
    transform: translateX(-3px);
    text-decoration: none;
}

.update-pw-back-link .back-chevron {
    font-size: 1.2em;
    line-height: 1;
}

.update-pw-page-title {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(2.6rem, 2.8vw, 3.6rem);
    font-weight: 500;
    color: #111111;
    margin: 0;
    line-height: 1.2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.update-pw-top-nav-spacer {
    width: 6.0rem;
    flex-shrink: 0;
}

/* ==========================================================================
   CENTERED FORM WRAPPER
   ========================================================================== */

.update-pw-form-wrap {
    max-width: 62.0rem;
    margin: 0 auto;
    width: 100%;
}

/* Feedback Alert Banner */
.update-pw-alert-banner {
    display: none;
    align-items: center;
    gap: 1.2rem;
    background-color: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 1.4rem 2.0rem;
    border-radius: 1.2rem;
    margin-bottom: 2.8rem;
    font-family: 'Urbanist', sans-serif;
    font-size: clamp(1.3rem, 1.0vw, 1.45rem);
    font-weight: 500;
    animation: updatePwFadeIn 0.3s ease;
}

.update-pw-alert-banner.alert-danger {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

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

/* Field Group */
.update-pw-field-group {
    margin-bottom: clamp(2.2rem, 2.6vw, 3.0rem);
}

.update-pw-field-group.has-forgot {
    margin-bottom: 1.0rem;
}

.update-pw-field-label {
    display: block;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.2rem, 0.9vw, 1.3rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #71717a;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

/* Pill Input Container */
.update-pw-input-box {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 5rem;
    padding: 0.4rem 1.8rem 0.4rem 2.4rem;
    height: clamp(5.0rem, 4.4vw, 5.6rem);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.update-pw-input-box.is-invalid {
    border-color: #ef4444;
}

.update-pw-input-control {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.35rem, 1.05vw, 1.5rem);
    color: #111111;
    padding-right: 1.2rem;
}

.update-pw-input-control::placeholder {
    color: #27272a;
    font-size: clamp(1.35rem, 1.05vw, 1.5rem);
    font-weight: 400;
}

/* Eye Visibility Toggle Button */
.update-pw-eye-btn {
    background: transparent;
    border: none;
    padding: 0.6rem;
    color: #111111;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.update-pw-eye-btn:hover {
    color: #000000;
}

/* FORGOT PASSWORD? Link */
.update-pw-forgot-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: clamp(2.2rem, 2.6vw, 3.0rem);
}

.update-pw-forgot-link {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.2rem, 0.9vw, 1.3rem);
    font-weight: 500;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.update-pw-forgot-link:hover {
    color: #111111;
    text-decoration: none;
}

/* Centered UPDATE PASSWORD Button */
.update-pw-action-wrap {
    display: flex;
    justify-content: center;
    margin-top: clamp(3.6rem, 4.4vw, 5.6rem);
}

.btn-update-pw-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background-color: #35f3ff;
    color: #000000 !important;
    border: none;
    border-radius: 5rem;
    padding: clamp(1.2rem, 1.35vw, 1.55rem) clamp(4.4rem, 5.2vw, 6.4rem);
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.25rem, 0.95vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0.3rem 1.0rem rgba(53, 243, 255, 0.3);
}

.btn-update-pw-submit:hover {
    background-color: #21e2ee;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.6rem rgba(53, 243, 255, 0.5);
    text-decoration: none;
}

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

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

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 991px) {
    .update-pw-top-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.4rem;
        margin-bottom: 3.2rem;
    }

    .update-pw-page-title {
        position: static;
        transform: none;
        text-align: left;
    }

    .update-pw-top-nav-spacer {
        display: none;
    }
}

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

    .btn-update-pw-submit {
        width: 100%;
    }
}

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