/* Контейнер авторизации (Центрированный и аккуратный) */
.lms-auth-container {
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    text-align: center;
}

/* Логотип */
.lms-auth-logo i {
    font-size: 40px;
    color: var(--color-primary);
    margin-bottom: 10px;
    display: inline-block;
}
.lms-auth-logo h2 {
    font-size: 20px;
    margin: 0 0 20px 0;
    color: #333;
}

/* Поля формы */
.lms-auth-form { text-align: left; }
.lms-auth-form .lms-field { margin-bottom: 15px; }
.lms-auth-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: #555; }
.lms-auth-form input[type="text"],
.lms-auth-form input[type="password"],
.lms-auth-form input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border 0.2s;
    box-sizing: border-box;
}
.lms-auth-form input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 211, 90, 0.1);
}

/* Пароль с глазиком */
.lms-password-wrapper { position: relative; }
.lms-toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
}

/* Кнопка */
.lms-submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* Ссылки футера */
.lms-auth-footer { margin-top: 15px; text-align: center; font-size: 14px; }
.lms-auth-footer a { color: #777; text-decoration: none; }
.lms-auth-footer a:hover { color: var(--color-primary); text-decoration: underline; }

/* Сообщения */
.lms-auth-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
    text-align: center;
}
.lms-auth-message.success { background: #e8f5e9; color: #2e7d32; }
.lms-auth-message.error { background: #ffebee; color: #c62828; }

/* Соцсети */
.lms-social-login { margin-top: 25px; }
.lms-divider {
    position: relative; text-align: center; margin-bottom: 15px;
}
.lms-divider:before {
    content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: #eee;
}
.lms-divider span {
    background: #fff; padding: 0 10px; position: relative; font-size: 12px; color: #999;
}
.lms-social-buttons { display: flex; gap: 10px; justify-content: center; }
.lms-social-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid #eee; background: #fff;
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s;
    font-size: 18px; color: #555;
}
.lms-social-btn:hover { background: #f9f9f9; transform: translateY(-2px); }

/* Поддержка */
.lms-auth-support {
    margin-top: 25px; padding-top: 15px; border-top: 1px solid #f0f0f0;
}
.lms-auth-support p { font-size: 13px; color: #888; margin-bottom: 10px; }
.lms-support-buttons { display: flex; gap: 15px; justify-content: center; }
.lms-support-btn {
    font-size: 24px; color: #ccc; transition: 0.2s;
}
.lms-support-btn.wa:hover { color: #25D366; }
.lms-support-btn.tg:hover { color: #0088cc; }
.lms-support-btn.mail:hover { color: #333; }

/* Утилиты */
.lms-hidden { display: none; }
.lms-spinner-small {
    width: 16px; height: 16px; border: 2px solid #fff; border-top-color: transparent;
    border-radius: 50%; animation: spin 1s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Специфика Модалки */
.lms-auth-modal-content {
    background: transparent; box-shadow: none; border: none; padding: 0;
}
.lms-auth-modal-content .lms-auth-container {
    margin: 0 auto; box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}