/* =====================================================
   Responsive Login / Register Form CSS
   Created by Amin Developer - Improved Mobile Version
   Full Responsive for Desktop / Tablet / Mobile
===================================================== */

/* Main Background Section */
.wd-content-layout {
    padding-block: 40px;
    max-width: 100% !important;
    width: 100%;
    overflow-x: hidden;
}

body:not(.logged-in) .wd-content-layout {
    background-color: #f2f2f4;
}
body:not(.logged-in) .wd-content-layout {
    /*min-height: 100vh;*/
}

/* Main Container */
.woocommerce-account .am-container {
    width: 100%;
    max-width: 420px;
    margin: 60px auto;
    background: #fff;
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

/* Tabs Wrapper */
.am-tab-box {
    display: flex;
    background: #f2f2f2;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    width: 100%;
}

/* Tab Buttons */
.am-tab-btn {
    flex: 1;
    border: none;
    padding: 14px 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 0;
    white-space: nowrap;
}

.am-tab-btn.active {
    background: linear-gradient(
        90deg,
        #dd2a2d,
        #e65a37,
        #f08a40
    );
    
    color: #fff;
}

/* Form Visibility */
.am-form-box {
    display: none;
    width: 100%;
}

.am-form-box.active {
    display: block;
}

/* Form Heading */
.am-form-box h2 {
    margin-bottom: 20px;
    font-size: 26px;
    text-align: center;
    line-height: 1.3;
}

/* Form Row */
.woocommerce-account .am-form-box .form-row {
    margin-bottom: 16px;
    width: 100%;
}

/* Labels */
.woocommerce-account .am-form-box label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* Inputs */
.woocommerce-account .am-form-box input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
    transition: 0.3s;
    background: #fff;
}

/* Input Focus */
.woocommerce-account .am-form-box input:focus {
    border-color: #b95de7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(185, 93, 231, 0.08);
}

/* Buttons */
.woocommerce-account .woocommerce-button.button,
.woocommerce-account button.button {
    width: 100%;
    border-radius: 10px;
    padding: 14px;
    background: linear-gradient(90deg, #dd2a2d, #e65a37, #f08a40);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    box-sizing: border-box;
    margin-top: 10px;
}

.woocommerce-account .woocommerce-button.button:hover,
.woocommerce-account button.button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* Remember Me Checkbox */
.woocommerce-form-login .form-row label.woocommerce-form__label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.woocommerce-form-login .form-row label.woocommerce-form__label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    min-width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.woocommerce-form-login .form-row {
    text-align: left;
}

/* Lost Password Link */
.woocommerce-LostPassword {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.woocommerce-LostPassword a {
    text-decoration: none;
    color: #9b4de2;
    font-weight: 500;
}

/* ================================
   Tablet Responsive
================================ */

@media (max-width: 768px) {
    
    .wd-content-layout {
        padding-block: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .woocommerce-account .am-container {
        max-width: 100%;
        margin: 40px auto;
        padding: 28px;
        border-radius: 16px;
    }

    .am-form-box h2 {
        font-size: 24px;
    }

    .am-tab-btn {
        font-size: 15px;
        padding: 13px 8px;
    }
}

/* ================================
   Mobile Responsive
================================ */

@media (max-width: 576px) {

    .wd-content-layout {
        padding-block: 20px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .woocommerce-account .am-container {
        width: 100%;
        margin: 20px auto;
        padding: 22px 18px;
        border-radius: 14px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    }

    .am-tab-box {
        margin-bottom: 20px;
        border-radius: 10px;
    }

    .am-tab-btn {
        font-size: 14px;
        padding: 12px 6px;
        font-weight: 600;
    }

    .am-form-box h2 {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .woocommerce-account .am-form-box label {
        font-size: 13px;
    }

    .woocommerce-account .am-form-box input {
        padding: 13px;
        font-size: 14px;
        border-radius: 9px;
    }

    .woocommerce-account .woocommerce-button.button,
    .woocommerce-account button.button {
        padding: 13px;
        font-size: 15px;
        border-radius: 9px;
    }

    .woocommerce-form-login .form-row label.woocommerce-form__label {
        font-size: 13px;
        gap: 6px;
    }

    .woocommerce-LostPassword {
        font-size: 13px;
    }
}


.am-lost-password {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 18px;
}

.am-lost-password a {
    font-size: 13px;
    color: #777;
    text-decoration: none;
    transition: color 0.2s ease;
}

.am-lost-password a:hover {
    color: #000;
    text-decoration: underline;
}


/* ================================
   Extra Small Devices
   iPhone SE / Small Samsung
================================ */

@media (max-width: 375px) {

    .woocommerce-account .am-container {
        padding: 18px 14px;
    }

    .am-tab-btn {
        font-size: 13px;
        padding: 11px 4px;
    }

    .am-form-box h2 {
        font-size: 20px;
    }

    .woocommerce-account .am-form-box input {
        font-size: 13px;
        padding: 12px;
    }

    .woocommerce-account .woocommerce-button.button,
    .woocommerce-account button.button {
        font-size: 14px;
        padding: 12px;
    }
}