/* Premium Login CSS */

/* Page Background matching Home/Contact */
#login-root {
    min-height: calc(100vh - 160px);
    /* Adjust for Header Height */
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../../images/shop-banner.png') center/cover no-repeat fixed;
    position: relative;
    font-family: 'Poppins', sans-serif;
    padding: 40px 20px;
    /* Added padding to prevent overlap with header/footer */
}

/* Light Overlay */
#login-root::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    /* Light Theme Overlay */
    z-index: 1;
}

/* Glass/Card Container */
#login-root .container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Header */
#login-root h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #111;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Input Fields */
#login-root .input-box {
    position: relative;
    margin-bottom: 25px;
    width: 100%;
}

#login-root .input-box input {
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #ccc;
    font-size: 1rem;
    color: #333;
    outline: none;
    transition: 0.3s;
    border-radius: 0;
}

#login-root .input-box label {
    position: absolute;
    top: 12px;
    left: 15px;
    font-size: 0.95rem;
    color: #777;
    pointer-events: none;
    transition: 0.3s;
}

#login-root #togglePassword {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    z-index: 10;
}

/* Floating Label Animation */
#login-root .input-box input:focus~label,
#login-root .input-box input:not(:placeholder-shown)~label {
    top: -10px;
    left: 0;
    color: #d4af37;
    /* Gold focus */
    font-size: 0.8rem;
    font-weight: 600;
}

#login-root .input-box input:focus,
#login-root .input-box input:not(:placeholder-shown) {
    border-bottom-color: #d4af37;
}

/* Button */
#login-root .btn {
    width: 100%;
    padding: 15px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

#login-root .btn:hover {
    background: #d4af37;
    /* Gold hover */
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Links */
#login-root .links {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
}

#login-root .links a {
    color: #555;
    text-decoration: none;
    transition: 0.3s;
}

#login-root .links a:hover {
    color: #f15406;
    /* Orange accent for links */
    text-decoration: none;
}

/* Mobile */
@media (max-width: 480px) {
    #login-root .container {
        padding: 30px 20px;
    }

    #login-root h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    #login-root {
        padding-top: 40px;
        min-height: auto;
    }

    #login-root .container {
        padding: 25px 20px;
        border-radius: 12px;
        width: 90%;
        /* Ensure width isn't too wide */
        margin: 0 auto;
    }

    #login-root h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    #login-root .input-box {
        margin-bottom: 20px;
        width: 100%;
    }

    #login-root .input-box input {
        width: 100%;
        /* Force full width */
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    #login-root .btn {
        padding: 12px;
        font-size: 0.95rem;
        width: 100%;
    }

    #login-root .links {
        font-size: 0.85rem;
    }
}