.woo-auth {
    --primary: #d29616;
    --blue: #004aa9;
    --black: #111;
    --text: #333;
    --border: #e5e5e5;

    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 35px 40px 40px;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 14px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, .07);
}

.woo-auth *,
.woo-auth *::before,
.woo-auth *::after {
    box-sizing: border-box;
}

.woo-auth__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 32px;
    padding: 5px;
    background: #f5f5f5;
    border-radius: 10px;
}

.woo-auth__tab {
    min-height: 48px;
    padding: 10px 20px;
    border: 1px solid transparent !important;
    border-radius: 7px;
    background: transparent !important;
    color: #000 !important;
    font-size: 16px;
    font-weight: 600 !important;
    line-height: 1.3;
    cursor: pointer;
    transition: .2s ease;
}

.woo-auth__tab:hover,
.woo-auth__tab:focus,
.woo-auth__tab.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.woo-auth__tab::after {
    display: none !important;
}

.woo-auth__panel {
    display: none;
}

.woo-auth__panel.active {
    display: block;
    animation: wooAuthFade .2s ease;
}

@keyframes wooAuthFade {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.woo-auth form,
.woo-auth .woocommerce-form {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.woo-auth .form-row {
    float: none !important;
    width: 100% !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
}

.woo-auth .form-row::before,
.woo-auth .form-row::after {
    display: none !important;
}

.woo-auth label {
    display: block;
    margin: 0 0 8px !important;
    color: var(--black);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.woo-auth .required {
    color: var(--primary) !important;
}


.woo-auth input[type="text"],
.woo-auth input[type="email"],
.woo-auth input[type="tel"],
.woo-auth input[type="password"] {
    width: 100% !important;
    height: 50px;
    margin: 0 !important;
    padding: 0 15px !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    background: #fafafa;
    color: var(--black);
    font-size: 15px;
    font-weight: 400;
    outline: none !important;
    box-shadow: none !important;
    transition: .2s ease;
}

.woo-auth input:hover {
    border-color: #ccc !important;
}

.woo-auth input[type="text"]:focus,
.woo-auth input[type="email"]:focus,
.woo-auth input[type="tel"]:focus,
.woo-auth input[type="password"]:focus {
    background: #fff;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(210, 150, 22, .12) !important;
}


.woo-auth__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}


.woo-auth__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 3px 0 24px;
}

.woo-auth__remember {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: auto !important;
    margin: 0 !important;
    font-weight: 400 !important;
    cursor: pointer;
}

.woo-auth__remember input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px;
    margin: 0 !important;
    accent-color: var(--primary);
}

.woo-auth__options a {
    color: var(--blue);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.woo-auth__options a:hover {
    color: var(--primary);
}

.woo-auth__password {
    position: relative;
    display: block;
    width: 100%;
}

.woo-auth__password input {
    padding-right: 52px !important;
}

.woo-auth .woo-auth__password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: #777 !important;
    box-shadow: none !important;
    transform: translateY(-50%) !important;
    cursor: pointer;
}

.woo-auth .woo-auth__password-toggle:hover {
    background: #f1f1f1 !important;
    color: var(--primary) !important;
}

.woo-auth__eye-icon {
    display: block;
    width: 21px;
    height: 21px;
    pointer-events: none;
}

.woo-auth__eye-slash {
    opacity: 0;
    transition: opacity .2s ease;
}

.woo-auth__password-toggle.is-visible {
    color: var(--primary) !important;
}

.woo-auth__password-toggle.is-visible .woo-auth__eye-slash {
    opacity: 1;
}

.woo-auth button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin: 5px 0 0 !important;
    padding: 12px 25px !important;
    border: 1px solid var(--primary) !important;
    border-radius: 8px !important;
    background: var(--primary) !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
    box-shadow: none !important;
    cursor: pointer;
    transition: .2s ease;
}

.woo-auth button[type="submit"]:hover {
    background: var(--black) !important;
    border-color: var(--black) !important;
    color: #fff !important;
}

.woo-auth input:-webkit-autofill {
    -webkit-text-fill-color: #111;
    box-shadow: 0 0 0 1000px #fff inset !important;
}

.woo-auth-logged {
    max-width: 560px;
    margin: 0 auto;
    padding: 35px;
    text-align: center;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 14px;
}

.woo-auth-logged .button {
    padding: 12px 25px;
    border-radius: 7px;
    background: var(--primary);
    color: #fff;
}

@media (max-width: 600px) {
    .woo-auth {
        padding: 25px 18px 28px;
        border-radius: 10px;
    }

    .woo-auth__tabs {
        margin-bottom: 25px;
    }

    .woo-auth__tab {
        min-height: 45px;
        padding: 10px;
        font-size: 14px;
    }

    .woo-auth__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .woo-auth input[type="text"],
    .woo-auth input[type="email"],
    .woo-auth input[type="tel"],
    .woo-auth input[type="password"] {
        height: 48px;
        font-size: 16px;
    }

    .woo-auth__options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}