/* Bell Mount Chocolates - Zero-G Theme */

:root {
    --color-cocoa: #3E2723;
    --color-cocoa-dark: #1A0F0D;
    --color-gold: #D4AF37;
    --color-cream: #FFFDD0;
    --color-accent: #FF6F00;
    /* Spicy accent */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

html,
body {
    background-color: var(--color-cocoa-dark);
    color: var(--color-cream);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
    position: relative;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-gold);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utility Classes */
.text-gold {
    color: var(--color-gold) !important;
}

.text-cream {
    color: var(--color-cream) !important;
}

.bg-cocoa-dark {
    background-color: var(--color-cocoa-dark) !important;
}

.font-heading {
    font-family: var(--font-heading) !important;
}

.container {
    max-width: 1200px;
    /* Consitent with previous design */
}

.highlight {
    background: linear-gradient(120deg, var(--color-gold), #FFF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-custom {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0;
}

.btn-custom:hover {
    background: var(--color-gold);
    color: var(--color-cocoa-dark);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-glow {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.btn:hover {
    background: var(--color-gold);
    color: var(--color-cocoa-dark);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn--glow {
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    background: transparent;
    padding: 0.75rem 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    animation: pulse-gold 2s infinite;
    transition: all 0.3s ease;
}

.btn--glow:hover {
    color: var(--color-cocoa-dark);
    background: var(--color-gold);
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    }

    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 10px rgba(212, 175, 55, 0.4) inset;
    }

    100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    }
}

/* Ingredient Pills */
.ingredient-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: rgba(255, 253, 208, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ingredient-pill:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--color-gold);
    color: var(--color-gold);
    transform: translateY(-2px);
}

.ingredient-pill i {
    color: var(--color-gold);
}

.btn-solid-gold {
    background: var(--color-gold);
    color: var(--color-cocoa-dark);
    border: 1px solid var(--color-gold);
    padding: 0.75rem 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.btn-solid-gold:hover {
    background: #c5a028;
    /* Slightly darker gold */
    color: #000;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}

/* Product Actions Responsive Layout */
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 576px) {
    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .quantity-controller {
        justify-content: space-between;
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 1rem;
        padding: 0.5rem 1rem !important;
    }

    .product-actions .btn {
        width: 100%;
    }
}

/* Premium Contact Page Styles */
.bg-gradient-chocolate {
    background: radial-gradient(circle at center, #2e1d1a 0%, var(--color-cocoa-dark) 100%);
    position: relative;
    overflow: hidden;
}

.bg-gradient-chocolate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    /* Subtle texture */
    opacity: 0.1;
    pointer-events: none;
}

.card-glass {
    background: rgba(40, 25, 20, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card-glass:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
}

.icon-glow-gold {
    color: var(--color-gold);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    transition: transform 0.3s ease;
}

.icon-box:hover .icon-glow-gold {
    transform: scale(1.1);
}

/* Product Page Styles */
/* Premium Filter Buttons */
.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: rgba(255, 253, 208, 0.7);
    padding: 0.6rem 2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--color-gold);
    color: var(--color-gold);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--color-gold), #b8860b);
    border-color: var(--color-gold);
    color: #1a0f0d;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    font-weight: 700;
}

/* Mobile Filter Layout */
@media (max-width: 991px) {
    #filterContainer .d-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem !important;
        background: rgba(255, 255, 255, 0.03);
        padding: 1.5rem;
        border-radius: 10px;
        border: 1px solid rgba(212, 175, 55, 0.1);
        margin-top: 10px;
    }

    .filter-btn {
        width: 100%;
        text-align: center;
        background: rgba(255, 255, 255, 0.05);
        /* Ensure visibility */
    }
}

.product-price {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-gold);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-gold);
    color: #1a0f0d;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

.input-premium {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 253, 208, 0.2);
    border-radius: 0;
    color: var(--color-cream);
    padding: 1rem 0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-premium:focus {
    background: transparent;
    border-bottom-color: var(--color-gold);
    box-shadow: 0 4px 6px -4px rgba(212, 175, 55, 0.2);
    color: #fff;
    outline: none;
}

.input-premium::placeholder {
    color: rgba(255, 253, 208, 0.3);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.floating-label-group {
    position: relative;
    margin-bottom: 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.5rem 0;
    /* Reduced padding */
    background: rgba(26, 15, 13, 0.95);
    /* Increased opacity for better readability */
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    width: auto;
}

.logo-img {
    width: 120px;
    /* Increased size for fast visibility */
    height: 100px;
    display: block;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.2));
}

.logo-text {
    font-family: 'Playfair Display', serif;
    /* Stylish font */
    color: var(--color-gold);
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-cream);
    display: block;
    margin-top: 3px;
    font-weight: 400;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
}


.nav__link {
    color: var(--color-cream);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--color-gold);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero__content {
    z-index: 2;
}

.hero__title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 450px;
    color: rgba(255, 253, 208, 0.8);
}

.hero__visual {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__img {
    max-width: 120%;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

.hero__glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(40px);
    z-index: -1;
}

/* Background Particles */
.hero__bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-particle {
    position: absolute;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
}

.p1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation: float 8s infinite reverse;
}

.p2 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    right: 15%;
    animation: float 5s infinite;
}

.p3 {
    width: 150px;
    height: 150px;
    top: -10%;
    right: -5%;
    filter: blur(2px);
    animation: float 10s infinite;
}


/* About Section */
.about {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--color-cocoa-dark), #261714);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin: 0 auto 3rem auto;
    position: relative;
    display: table;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 60px;
    height: 2px;
    background: var(--color-gold);
    transform: translateX(-50%);
}

.about__text {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 253, 208, 0.9);
}

.about__text p {
    margin-bottom: 2rem;
}

/* Benefits Section */
.benefits {
    padding: 6rem 0;
    position: relative;
    background: url('assets/benefits_bg.png') no-repeat center center/cover;
}

.benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 5, 5, 0.85);
    /* Dark overlay */
}

.benefits .container {
    position: relative;
    z-index: 2;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-gold);
}

.benefit-card p {
    color: rgba(255, 253, 208, 0.8);
    font-size: 1.1rem;
}

/* Product & Grid */
.products {
    padding: 6rem 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 2px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 175, 55, 0.3);
}

.product-card__visual {
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.product-card__img {
    max-height: 100%;
    max-width: 100%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.product-card:hover .product-card__img {
    transform: scale(1.1) rotate(5deg);
}

.product-card__title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.product-card__desc {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 253, 208, 0.7);
}

.product-card__price {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.btn--small {
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
}

/* Contact */
.contact {
    padding: 6rem 0;
    text-align: center;
    background: radial-gradient(circle at center, #2e1d1a 0%, var(--color-cocoa-dark) 100%);
}

.contact-minimal {
    max-width: 400px;
    margin: 0 auto;
}

.contact__form {
    display: flex;
    gap: 0.5rem;
    /* Tighter gap for minimal look */
}

.contact__form input {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.5);
    /* Underline style */
    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: 1rem;
    text-align: center;
    /* Center placeholder/text */
}

.contact__form input::placeholder {
    color: rgba(255, 253, 208, 0.4);
}

.contact__form input:focus {
    outline: none;
    border-color: var(--color-gold);
}

.btn--icon {
    padding: 0.5rem 1rem;
    font-size: 1.5rem;
    border: none;
    background: transparent;
}

.btn--icon:hover {
    box-shadow: none;
    transform: translateX(5px);
    /* Slide arrow on hover */
    background: transparent;
    color: var(--color-accent);
}

.social-links {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: var(--color-gold);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: var(--transition);
}

.social-links a:hover {
    opacity: 1;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem 0;
    background-color: #050202;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: rgba(255, 253, 208, 0.7);
    font-size: 0.9rem;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

.footer__heading {
    font-size: 1.2rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.footer__col {
    display: flex;
    flex-direction: column;
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 0.8rem;
}

.footer__link {
    color: rgba(255, 253, 208, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

.footer__socials {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer__text {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.footer__copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: rgba(255, 253, 208, 0.4);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {

    /* Header & Nav */
    .header {
        padding: 1rem 0;
    }

    .nav__list {
        gap: 1rem;
        font-size: 0.7rem;
        /* Smaller font for mobile nav */
    }

    .logo-link {
        width: 100px;
    }

    /* Hero */
    .hero {
        padding-top: 100px;
        min-height: auto;
        /* Allow content to dictate height on mobile */
        padding-bottom: 4rem;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero__content {
        order: 1;
        /* Content first */
    }

    .hero__title {
        font-size: 2.5rem;
        /* Smaller title for mobile */
    }

    .hero__subtitle {
        margin: 0 auto 2rem auto;
        font-size: 1rem;
    }

    .hero__visual {
        order: 2;
        /* Visual second */
        height: 350px;
    }

    .hero__img {
        max-width: 90%;
        /* Prevent overflow */
    }

    .hero__glow {
        width: 250px;
        height: 250px;
    }

    /* General Sections */
    .section-title {
        font-size: 2.2rem;
    }

    .about,
    .products,
    .contact {
        padding: 4rem 0;
    }

    /* Split Layouts (About & Contact) */
    .split-layout,
    .contact-layout {
        grid-template-columns: 1fr !important;
        /* Force single column */
        gap: 3rem;
    }

    .text-content {
        text-align: center;
    }

    .text-content h2 {
        font-size: 2rem;
    }

    .contact-info-card {
        padding: 2rem;
    }

    .contact-page-hero {
        height: 60vh;
        /* Adjust height for mobile */
        padding-top: 80px;
    }

    .contact__form {
        flex-direction: column;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header__container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        width: 100%;
        overflow-x: auto;
        /* Scrollable nav if needed */
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .nav__list {
        justify-content: center;
        width: max-content;
        /* Ensure items don't squash */
        margin: 0 auto;
        gap: 1.5rem;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Auth Redesign */
.auth-glass-card {
    background: rgba(26, 15, 13, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 3rem 2rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.auth-glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Bottom Border Only Inputs */
.floating-input,
.form-control {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.5) !important;
    border-radius: 0 !important;
    color: #fff !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.floating-input:focus,
.form-control:focus {
    background-color: transparent !important;
    background: transparent !important;
    border-bottom: 2px solid var(--color-gold) !important;
    box-shadow: none !important;
    color: #fff !important;
}

/* Fix Autofill to be consistent */
/* Fix Autocomplete/Autofill White Background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #0d0d0d inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
    background-color: transparent !important;
}

/* Validation Styles */
.is-valid {
    border-color: #198754 !important;
    /* Bootstrap success green */
}

.is-invalid {
    border-color: #dc3545 !important;
    /* Bootstrap danger red */
}

/* Fix Floating Label White Background */
.form-floating>label {
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.5) !important;
    padding-left: 0 !important;
    /* Align with bottom border input */
}

.form-floating>label::after {
    background-color: transparent !important;
}

/* Ensure label stays transparent when floating */
.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    background-color: transparent !important;
    color: var(--color-gold) !important;
    opacity: 1;
}

/* Password Toggle Eye Icon */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    z-index: 10;
    border: none;
    background: transparent;
    padding: 5px;
}

.password-toggle:hover {
    color: var(--color-gold);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.is-invalid~.invalid-feedback {
    display: block;
}

/* Password Strength Meter */
.password-strength-meter {
    height: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
    display: none;
    /* Hidden by default until typing */
}

.password-strength-meter-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-weak {
    background-color: #dc3545;
}

.strength-medium {
    background-color: #ffc107;
}

.strength-strong {
    background-color: #198754;
}

.strength-very-strong {
    background-color: #0d6efd;
}

.password-requirements {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
    list-style: none;
    padding-left: 0;
    display: none;
}

.password-requirements li {
    margin-bottom: 2px;
}

.password-requirements li.valid {
    color: #198754;
}

.password-requirements li.invalid {
    color: #dc3545;
    /* or keep generic white-50 */
}

.password-requirements li i {
    margin-right: 5px;
}

/* Ensure focus doesn't add white background */
.form-control:focus {
    background-color: transparent !important;
    box-shadow: none !important;
    border-color: #D4AF37 !important;
    color: #fff !important;
}

.form-floating label {
    color: rgba(255, 255, 255, 0.7) !important;
    background: transparent !important;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--color-gold) !important;
    background: transparent !important;
    opacity: 1;
}