.lml-form {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.lml-form__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lml-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: inherit;
}

.lml-field input[type="text"],
.lml-field input[type="password"],
.lml-field input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.75rem;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.4;
}

.lml-field-help {
    display: block;
    margin-top: 0.4rem;
    color: #646970;
    font-size: 0.875rem;
    line-height: 1.45;
}

.lml-login-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1.5rem 0;
    color: #72777c;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lml-login-divider::before,
.lml-login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dcdcde;
}

.lml-email-login__title {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    line-height: 1.35;
}

.lml-email-login__intro {
    margin: 0 0 1rem;
    color: #50575e;
    line-height: 1.6;
}

.lml-form__inner--otp {
    gap: 0.85rem;
}

.lml-button--secondary,
.lml-form__inner--otp .lml-button {
    background: #18a999;
}

.lml-button--secondary:hover,
.lml-button--secondary:focus,
.lml-form__inner--otp .lml-button:hover,
.lml-form__inner--otp .lml-button:focus {
    background: #12877b;
}

.lml-field-label {
    display: block;
    margin-bottom: 0.45rem;
}

.lml-otp-code-fields {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    max-width: 31rem;
}

.lml-field .lml-otp-code-fields .lml-otp-digit {
    width: 100% !important;
    min-width: 0;
    height: 3.5rem;
    box-sizing: border-box;
    padding: 0.4rem 0 !important;
    border: 1px solid #c7d5d2;
    border-radius: 6px;
    background: #ffffff;
    text-align: center;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.lml-field .lml-otp-code-fields .lml-otp-digit:focus {
    border-color: #18a999;
    outline: 3px solid rgba(24, 169, 153, 0.16);
    box-shadow: none;
}

.lml-otp-resend-form {
    margin: 0;
}

.lml-otp-resend {
    margin: 0.9rem 0 0;
    color: #62717a;
    font-size: 0.875rem;
    line-height: 1.55;
}

.lml-otp-resend [hidden] {
    display: none !important;
}

.lml-inline-action {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: #008f7a;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.lml-inline-action:hover,
.lml-inline-action:focus {
    color: #006f60;
}

.lml-inline-action:focus-visible {
    outline: 2px solid rgba(24, 169, 153, 0.35);
    outline-offset: 3px;
}

.woocommerce-form-login .lml-email-login--woocommerce {
    clear: both;
    margin-top: 1rem;
}

.woocommerce-form-login .lml-email-login--woocommerce > .lml-notices {
    margin: 0 0 1rem;
}

.woocommerce-form-login .lml-email-login--woocommerce .lml-actions {
    float: none !important;
    clear: both;
    width: 100% !important;
    margin: 0.75rem 0 0;
    padding: 0 !important;
}

.woocommerce-form-login .lml-email-login--woocommerce .lml-button {
    width: 100%;
    min-height: 3rem;
    border-radius: 6px;
    background: #18a999 !important;
    color: #ffffff !important;
    box-shadow: none;
}

.woocommerce-form-login .lml-email-login--woocommerce .lml-button:hover,
.woocommerce-form-login .lml-email-login--woocommerce .lml-button:focus {
    background: #12877b !important;
}

.woocommerce-form-login .lml-email-login--woocommerce .lml-field--otp {
    float: none !important;
    clear: both;
    width: 100% !important;
    padding: 0 !important;
}

.lml-email-login--enhanced .lml-otp-request-fields[hidden] {
    display: none;
}

.lml-field input:focus {
    border-color: #2271b1;
    outline: 2px solid rgba(34, 113, 177, 0.2);
    outline-offset: 0;
}

.lml-field--checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
}

.lml-actions {
    margin-top: 0.25rem;
}

.lml-button {
    display: inline-block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: 4px;
    background: #2271b1;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.lml-button:hover,
.lml-button:focus {
    background: #135e96;
}

.lml-links {
    margin: 0.5rem 0 0;
    text-align: center;
}

.lml-links a {
    color: #2271b1;
    text-decoration: underline;
}

.lml-links .lml-button {
    display: inline-block;
    width: auto;
    text-decoration: none;
    color: #fff;
}

.lml-intro {
    margin: 0 0 1rem;
    color: #50575e;
}

.lml-required {
    color: #d63638;
}

.lml-hp,
.lml-hp__label,
.lml-hp__input {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.lml-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
}

.lml-password-wrap {
    position: relative;
}

.lml-password-wrap input {
    padding-right: 2.75rem;
}

.lml-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: #50575e;
    cursor: pointer;
    padding: 0;
}

.lml-password-toggle:focus {
    outline: 2px solid rgba(34, 113, 177, 0.2);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .lml-field-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .lml-otp-code-fields {
        gap: 0.3rem;
    }

    .lml-field .lml-otp-code-fields .lml-otp-digit {
        height: 3rem;
        border-radius: 5px;
        font-size: 1.1rem;
    }
}

.lml-notices {
    margin-bottom: 1rem;
}

.lml-notice {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    border-left: 4px solid transparent;
}

.lml-notice p {
    margin: 0;
}

.lml-notice--error {
    background: #fcf0f1;
    border-left-color: #d63638;
    color: #8a2424;
}

.lml-notice--success {
    background: #edfaef;
    border-left-color: #00a32a;
    color: #1e4620;
}
