.mlf-login-page {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 48px;
    width: 100%;
    box-sizing: border-box;
}

.mlf-login-page .container {
    width: 100%;
    max-width: 520px;
}

.mlf-login-card {
    width: 100%;
    max-width: 480px;
    min-height: 560px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 44px 36px 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.mlf-login-facebook-error {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
    font-size: 14px;
    text-align: center;
    line-height: 1.45;
}

.mlf-login-title {
    margin: 0 0 24px;
    font-size: 32px;
    font-weight: 700;
    color: #243140;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.mlf-login-social {
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
}

.mlf-login-fb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    border-radius: 8px;
    background: #3b5998;
    color: #fff !important;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    border: 1px solid #2f477a;
}

.mlf-login-fb-btn:hover {
    background: #334d82;
    color: #fff !important;
}

.mlf-login-fb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    line-height: 1;
}

.mlf-login-fb-spinner {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
}

.mlf-login-fb-btn.is-loading {
    pointer-events: none;
    cursor: wait;
    opacity: 0.88;
}

.mlf-login-fb-btn.is-loading .mlf-login-fb-icon {
    display: none;
}

.mlf-login-fb-btn.is-loading .mlf-login-fb-spinner {
    display: inline-flex;
}

.mlf-login-or {
    display: flex;
    align-items: center;
    margin: 6px 0 22px;
    text-align: center;
}

.mlf-login-or::before,
.mlf-login-or::after {
    content: '';
    flex: 1;
    border-top: 1px solid #e0e0e0;
}

.mlf-login-or span {
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    color: #8a8a8a;
    letter-spacing: 0.06em;
}

.mlf-login-result {
    display: none;
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.45;
}

.mlf-login-result.error {
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #912018;
}

.mlf-login-result.success {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #054f31;
}

.mlf-login-field {
    margin-bottom: 18px;
}

.mlf-login-field input {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 15px 14px;
    font-size: 16px;
    line-height: 1.35;
    min-height: 52px;
    box-sizing: border-box;
    background: #fff;
    color: #101828;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mlf-login-field input::placeholder {
    color: #98a2b3;
}

.mlf-login-field input:hover {
    border-color: #b8c0cc;
}

.mlf-login-field input:focus {
    outline: none;
    border-color: #0e688d;
    box-shadow: 0 0 0 3px rgba(14, 104, 141, 0.2);
}

.mlf-login-field input:-webkit-autofill,
.mlf-login-field input:-webkit-autofill:hover,
.mlf-login-field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #101828;
}

.mlf-login-forgot {
    margin: -6px 0 22px;
    text-align: right;
    font-size: 14px;
}

.mlf-login-forgot a {
    color: #0e688d;
}

.mlf-login-forgot a:hover {
    text-decoration: underline;
}

.mlf-login-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 8px;
    background: #ef4136;
    color: #fff;
    font-weight: 600;
    padding: 16px 18px;
    font-size: 17px;
    min-height: 54px;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.mlf-login-submit-spinner {
    display: none;
    font-size: 18px;
    line-height: 1;
}

.mlf-login-submit.is-loading .mlf-login-submit-spinner {
    display: inline-block;
}

.mlf-login-submit:hover:not(:disabled) {
    background: #d8342a;
}

.mlf-login-submit:disabled {
    cursor: not-allowed;
    opacity: 0.92;
}

.mlf-login-submit:disabled:hover {
    background: #ef4136;
}

.mlf-login-signup {
    margin: 28px 0 0;
    padding-top: 6px;
    text-align: center;
    font-size: 15px;
    line-height: 1.55;
    color: #444;
}

.mlf-login-signup a {
    color: #0e688d;
    font-weight: 500;
}

.mlf-login-signup a:hover {
    text-decoration: underline;
}
