/* Login Page Redesign */

.design-enhancer-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background-color: #F8FAFF;
    font-family: 'Poppins', sans-serif;
}

.design-enhancer-login-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.01);
    width: 100%;
    max-width: 480px;
    text-align: left;
    transition: height 0.3s ease;
    /* Smooth height change */
}

.style-shadow .navbar-wrap:not(.navbar-transparent),
.sticky-on .navbar-wrap {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.01) !important;
}

.woocommerce-form-register p:not(.woocommerce-form-row) {
    font-size: .7em !important;
}

/* Hide default WooCommerce artifacts if present */
.login-popup-header {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
}

.woocommerce-form-login,
.woocommerce-form-coupon,
.woocommerce-form-register {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    padding: 0px !important;
    border: none !important;
}

.de-login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.de-logo img {
    max-height: 40px;
    width: auto;
}

.de-customer-login-badge {
    background: #EBF0FF;
    color: #3b5bdb;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    border: 1px solid #dbe4ff;
    cursor: default;
    pointer-events: none;
    /* Just a badge now */
}

.de-login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 0.5rem 0;
}

.de-login-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.de-form-row {
    margin-bottom: 1rem;
    position: relative;
    margin-top: 0.9rem;
    width: 100%;
}

.de-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    color: #333;
    background-color: #fafafa;
}

.de-input:focus {
    border-color: #3b5bdb;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.1);
}

.de-password-row {
    position: relative;
}

.de-password-toggle,
.de-password-toggle-reg {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

.de-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #555;
}

.de-remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.de-lost-password {
    font-size: 0.85rem;
    color: #3b5bdb;
    text-decoration: none;
    font-weight: 500;
}

.de-lost-password:hover {
    text-decoration: underline;
}

.de-remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #ccc;
    accent-color: #3b5bdb;
    cursor: pointer;
}

.de-encryption-text {
    color: #999;
    font-size: 0.75rem;
    display: none;
}

@media (min-width: 480px) {
    .de-encryption-text {
        display: block;
    }
}

.de-submit-btn {
    width: 100%;
    background: #3b5bdb;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.de-submit-btn:hover {
    background: #304ac1;
}

.de-register-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.de-register-link a {
    color: #3b5bdb;
    font-weight: 600;
    text-decoration: none;
}

.de-register-link a:hover {
    text-decoration: underline;
}

/* Animations */
.de-section {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Override WooCommerce defaults if they interfere */
.woocommerce-form-login .form-row {
    padding: 0;
    margin: 0 0 1rem;
}

/* Hide default WooCommerce title if present outside our template */
.woocommerce-account h2 {
    display: none;
}