[x-cloak] { display: none !important; }

.lms-auth-floating {
    position: fixed;
    right: 20px;
    z-index: 9990;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.lms-auth-pos-top { top: 20px; }
.lms-auth-pos-bottom { bottom: 20px; }

.lms-auth-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
}

.lms-auth-user {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    padding: 0 6px;
}

.lms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 7px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease;
}

.lms-btn-primary { background: var(--primary-gradient); color: #ffffff !important; }
.lms-btn-primary:hover { background: #f80; }
.lms-btn-secondary { background: #f1f5f9; color: #0f172a !important; border-color: #cbd5e1; }
.lms-btn-ghost { background: transparent; color: #64748b !important; border-color: #e2e8f0; }
.lms-btn-ghost:hover { background: #f8fafc; color: #0f172a !important; }
.lms-btn-full { width: 100%; padding: 10px; font-size: 14px; }

.lms-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.lms-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 380px;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.lms-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.lms-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
}

.lms-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
}

.lms-field { margin-bottom: 14px; }
.lms-field label { display: block; font-size: 13px; font-weight: 500; color: #334155; margin-bottom: 5px; }
.lms-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 14px;
}
.lms-field input:focus { outline: none; border-color: #2563eb; }

.lms-auth-alert {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 13px;
    margin-bottom: 14px;
}
