/* ==================================================
   AUTH LAYOUT
   ================================================== */

.mf-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f8;
    font-family: system-ui, sans-serif;
}

.mf-auth__box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 32px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    position: relative;
}


/* ==================================================
   TITLE
   ================================================== */

.mf-auth__title {
    text-align: center;
    margin-bottom: 20px;
}


/* ==================================================
   MODE SWITCH
   ================================================== */

.mf-auth__modes {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.mf-auth__mode {
    flex: 1;
    padding: 10px;
    background: #e5e7eb;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background .15s ease, color .15s ease;
}

.mf-auth__mode.is-active {
    background: #2b6cb0;
    color: #fff;
}


/* ==================================================
   FORM FIELDS
   ================================================== */

.mf-auth__field {
    margin-bottom: 14px;
}

.mf-auth__field label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.mf-auth__field input {
    width: 100%;
    padding: 8px;
    font-size: 14px;
}


/* ==================================================
   SUBMIT & ERROR
   ================================================== */

.mf-auth__submit {
    width: 100%;
    padding: 10px;
    background: #2b6cb0;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.mf-auth__error {
    color: #b00020;
    margin-bottom: 10px;
    font-size: 14px;
}


/* ==================================================
   STATES (CORE LOGIC)
   ================================================== */

/* PIN MODE */
.mf-auth.state-pin .field-login,
.mf-auth.state-pin .field-password,
.mf-auth.state-pin .field-password-confirm {
    display: none;
}

/* PASSWORD MODE */
.mf-auth.state-password .field-phone,
.mf-auth.state-password .field-pin,
.mf-auth.state-password .field-password-confirm {
    display: none;
}

/* SET PASSWORD (future) */
.mf-auth.state-set-password .field-phone,
.mf-auth.state-set-password .field-pin,
.mf-auth.state-set-password .field-login {
    display: none;
}


/* ==================================================
   INFO BLOCK
   ================================================== */

.mf-auth__info {
    margin: 20px 0;
    padding: 14px;
    background: #f8f9fb;
    border-left: 4px solid #2b6cb0;
    font-size: 14px;
    line-height: 1.4;
}

.mf-auth__info p {
    margin: 0 0 8px 0;
}

.mf-auth__info a {
    color: #2b6cb0;
    text-decoration: none;
    word-break: break-all;
}

.mf-auth__info a:hover {
    text-decoration: underline;
}

.mf-auth__warning {
    color: #8a5a00;
    background: #fff4d6;
    padding: 8px;
    border-radius: 4px;
}


/* ==================================================
   FOOTER / HINT
   ================================================== */

.mf-auth__hint {
    margin-top: 14px;
    font-size: 12px;
    color: #666;
    text-align: center;
}


/* ==================================================
   LOADING STATE
   ================================================== */

.mf-auth.is-loading {
    opacity: .6;
    pointer-events: none;
}
