/**
 * Factory Core authentication & language-switcher styles.
 * Uses CSS logical properties so it works for both LTR and RTL automatically.
 */

.fc-auth {
    max-width: 420px;
    margin-inline: auto;
    padding: 28px 30px;
    border: 1px solid #e2e4e7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 4px rgba( 0, 0, 0, .04 );
    font-size: 15px;
}

.fc-auth[dir="rtl"] { text-align: right; }

.fc-auth__title {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 600;
}

.fc-auth__form { display: flex; flex-direction: column; gap: 14px; }

.fc-auth__label { display: flex; flex-direction: column; gap: 6px; }

.fc-auth__label > span { font-size: 13px; color: #50575e; }

.fc-auth__label input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfd4d9;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}

.fc-auth__label input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba( 34, 113, 177, .2 );
}

.fc-auth__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #50575e;
}

.fc-auth__submit {
    margin-block-start: 6px;
    padding: 11px 16px;
    border: 0;
    border-radius: 8px;
    background: #2271b1;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}

.fc-auth__submit:hover { background: #1b5e91; }

.fc-auth__error {
    margin-block-end: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fcf0f1;
    border: 1px solid #f0b6ba;
    color: #8a1f2b;
    font-size: 14px;
}

.fc-auth__hint { color: #b32d2e; font-size: 12.5px; font-style: normal; }

.fc-auth__alt { margin-block-start: 16px; font-size: 13.5px; }

/* Language switcher */
.fc-lang-switcher { display: inline-flex; gap: 10px; align-items: center; }
.fc-lang {
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    color: #2271b1;
}
.fc-lang.is-active { background: #2271b1; color: #fff; }
